Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for AutoTunePigLiJob (#201)
* Added support for AutoTunePigLiJob * Build failure fix: negative output directory removed
- Loading branch information
1 parent
6870d7e
commit c0ff31d
Showing
18 changed files
with
419 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
org.gradle.daemon=true | ||
version=0.14.3 | ||
version=0.14.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
li-hadoop-plugin-test/expectedJobs/countByCountryFlow/countByCountryFlow.job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This file generated from the Hadoop DSL. Do not edit by hand. | ||
type=noop | ||
dependencies=countByCountryFlow_countByCountry |
11 changes: 11 additions & 0 deletions
11
li-hadoop-plugin-test/expectedJobs/countByCountryFlow/countByCountryFlow_countByCountry.job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This file generated from the Hadoop DSL. Do not edit by hand. | ||
type=hadoopJava | ||
enable_tuning=true | ||
job.class=com.linkedin.jobtype.HadoopTuneInPigJob | ||
optimizationMetric=RESOURCE | ||
output_path=home/hadoop-starter-kit/hello-pig-azkaban/count_by_country | ||
param.output_path=home/hadoop-starter-kit/hello-pig-azkaban/count_by_country | ||
param.profile_data=/data/databases/Identity/Profile/#LATEST | ||
pig.additional.jars=hello-pig-udf.jar | ||
pig.script=src/main/pig/count_by_country.pig | ||
profile_data=/data/databases/Identity/Profile/#LATEST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
:li-hadoop-plugin-test:test_workflows | ||
Running test for the file positive/workflows.gradle | ||
Hadoop DSL static checker PASSED | ||
|
3 changes: 3 additions & 0 deletions
3
li-hadoop-plugin-test/jobs/countByCountryFlow/countByCountryFlow.job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This file generated from the Hadoop DSL. Do not edit by hand. | ||
type=noop | ||
dependencies=countByCountryFlow_countByCountry |
11 changes: 11 additions & 0 deletions
11
li-hadoop-plugin-test/jobs/countByCountryFlow/countByCountryFlow_countByCountry.job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This file generated from the Hadoop DSL. Do not edit by hand. | ||
type=hadoopJava | ||
enable_tuning=true | ||
job.class=com.linkedin.jobtype.HadoopTuneInPigJob | ||
optimizationMetric=RESOURCE | ||
output_path=home/hadoop-starter-kit/hello-pig-azkaban/count_by_country | ||
param.output_path=home/hadoop-starter-kit/hello-pig-azkaban/count_by_country | ||
param.profile_data=/data/databases/Identity/Profile/#LATEST | ||
pig.additional.jars=hello-pig-udf.jar | ||
pig.script=src/main/pig/count_by_country.pig | ||
profile_data=/data/databases/Identity/Profile/#LATEST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
:li-hadoop-plugin-test:test_workflows | ||
Running test for the file positive/workflows.gradle | ||
Hadoop DSL static checker PASSED | ||
|
29 changes: 29 additions & 0 deletions
29
li-hadoop-plugin-test/src/main/gradle/positive/workflows.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
buildscript { | ||
dependencies { | ||
classpath files( | ||
"${project.liPluginTestDir}/li-hadoop-plugin-${project.version}.jar", | ||
"${project.liPluginTestDir}/li-hadoop-plugin-${project.version}-SNAPSHOT.jar", | ||
"${project.pluginTestDir}/hadoop-plugin-${project.version}.jar", | ||
"${project.pluginTestDir}/hadoop-plugin-${project.version}-SNAPSHOT.jar") | ||
} | ||
} | ||
|
||
apply plugin: com.linkedin.gradle.lihadoop.LiHadoopPlugin | ||
|
||
def profileData = '/data/databases/Identity/Profile/#LATEST' | ||
|
||
hadoop { | ||
buildPath "jobs" | ||
|
||
workflow('countByCountryFlow') { | ||
autoTunePigLiJob('countByCountry') { | ||
uses 'src/main/pig/count_by_country.pig' | ||
reads files: ['profile_data': profileData] | ||
writes files: ['output_path': "home/hadoop-starter-kit/hello-pig-azkaban/count_by_country"] | ||
set properties: ['pig.additional.jars': "hello-pig-udf.jar" | ||
] | ||
} | ||
|
||
targets 'countByCountry' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.