步骤:将 ***.project和***.flow 打包成zip ,然后上传到azkaban就好了
示例1:test.zip
test.project
azkaban-flow-version: 2.0
test.flow
nodes:
- name: jobA
type: command
config:
command: echo "this is a simple test"
示例2:test2.zip
test.project
azkaban-flow-version: 2.0
test2.flow
nodes:
- name: jobE
type: command
config:
command: echo "This is job E"
# jobE depends on jobD
dependsOn:
- jobD
- name: jobD
type: command
config:
command: echo "This is job D"
# jobD depends on jobA、jobB、jobC
dependsOn:
- jobA
- jobB
- jobC
- name: jobA
type: command
config:
command: echo "This is job A"
- name: jobB
type: command
config:
command: echo "This is job B"
- name: jobC
type: command
config:
command: echo "This is job C"
示例3:test3.zip
test.project
azkaban-flow-version: 2.0
test3.flow
nodes:
- name: jobC
type: command
config:
command: echo "This is job C"
dependsOn:
- embedded_flow
- name: embedded_flow
type: flow
config:
prop: ${value}
nodes:
- name: jobB
type: command
config:
command: echo "This is job B ${prop}"
dependsOn:
- jobA
- name: jobA
type: command
config:
command: echo "This is job A"