Skip to content

Commit 7f794be

Browse files
author
Ragesh Rajagopalan
committed
Merge branch 'rakeshmalladi-addWormholePushJobType'
2 parents c18768f + 5bbe175 commit 7f794be

File tree

22 files changed

+388
-10
lines changed

22 files changed

+388
-10
lines changed

CONTRIBUTORS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,8 @@ The following were contributed by Chris Li.
155155
The following were contributed by Jamie Sun. Thanks, Jamie!
156156
* `Add conditional workflow feature`
157157
* `Fix base properties scope for subflows when generating YAML files`
158+
* `Fix variable substitution issue when generating YAML files`
159+
* `Fix variable substitution issue for dependency list`
160+
161+
The following were contributed by Rakesh Malladi. Thanks, Rakesh!
162+
* `Add ability for Hadoop DSL to understand the WormholePushJob job type`

VERSIONS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ the License.
1717
Note that the LinkedIn build system occasionally requires that we skip a
1818
version bump, so you will see a few skipped version numbers in the list below.
1919

20+
0.14.30
21+
* Adding WormholePushJob job type support
22+
23+
0.14.29
24+
* Fix variable substitution issue for dependency list
25+
26+
0.14.28
27+
* Fix variable substitution issue when generating YAML files
28+
2029
0.14.27
2130
* Fix base properties scope for subflows when generating YAML files
2231

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
org.gradle.daemon=true
2-
version=0.14.27
2+
version=0.14.30
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
azkaban-flow-version: 2.0
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
config:
2+
user.to.proxy: foo
3+
nodes:
4+
- name: wordCountFlow
5+
type: noop
6+
dependsOn:
7+
- checkResultsJob
8+
- name: checkResultsJob
9+
type: hadoopShell
10+
dependsOn:
11+
- wordCountMapReduceJob
12+
config:
13+
command: bash ./bash/checkResults.sh . Government
14+
- name: wordCountMapReduceJob
15+
type: hadoopJava
16+
dependsOn:
17+
- uploadResourceFilesJob
18+
condition: ${uploadResourceFilesJob:param1} == "foo"
19+
config:
20+
job.class: com.linkedin.hadoop.example.WordCountJob
21+
classpath: ./lib/*
22+
input.path: ./text
23+
output.path: ./word-count-map-reduce
24+
hadoop-inject.mapreduce.job.classloader: 'true'
25+
force.output.overwrite: 'true'
26+
- name: uploadResourceFilesJob
27+
type: hadoopShell
28+
config:
29+
command: hadoop fs -mkdir -p .
30+
command.1: hadoop fs -copyFromLocal -f ./text .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# This file generated from the Hadoop DSL. Do not edit by hand.
22
type=noop
3-
dependencies=jobs1_job25
3+
dependencies=jobs1_job26
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file generated from the Hadoop DSL. Do not edit by hand.
2+
type=WormholePushJob
3+
dependencies=jobs1_job25
4+
dataset=model
5+
dataset.group=linkedin-project
6+
input.path=/user/input
7+
namespace=linkedin
8+
output.location=LOCAL
9+
preserve.input=true
10+
version.string=1.2.4-2018.09.04

hadoop-plugin-test/expectedOutput/negative/missingFields.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ RequiredFieldsChecker ERROR: PinotBuildAndPushJob job18 must set tableName, inpu
4444
RequiredFieldsChecker ERROR: TableauJob job19 must set workbookName
4545
RequiredFieldsChecker ERROR: HdfsWaitJob job20 must set dirPath, freshness, timeout, and forceJobToFail
4646
RequiredFieldsChecker ERROR: VenicePushJob job23 must set avroKeyField, avroValueField, clusterName, inputPath, veniceStoreName
47+
RequiredFieldsChecker ERROR: WormholePushJob job26 must set inputPath, namespace, datasetGroup and dataset
4748
RequiredFieldsChecker WARNING: Properties properties1 does not set any confProperties, jobProperties, jvmProperties or basePropertySetName. Nothing will be built for this properties object.
4849
:hadoop-plugin-test:test_missingFields FAILED
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:hadoop-plugin-test:test_flowWithVariableSubstitution
2+
Running test for the file positive/flowWithVariableSubstitution.gradle
3+
Hadoop DSL static checker PASSED
4+

hadoop-plugin-test/src/main/gradle/negative/missingFields.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ hadoop {
122122
tensorFlowJob('job25', 'spark') {
123123
depends 'job24'
124124
}
125-
targets 'job25'
125+
126+
wormholePushJob('job26') {
127+
depends 'job25'
128+
}
129+
targets 'job26'
126130
}
127131
}

0 commit comments

Comments
 (0)