1、base.project
[alex@hadoop102 azkaban]$ vim jobs/base.project
azkaban-flow-version: 2.0
2、base.flow
[alex@hadoop102 azkaban]$ vim jobs/base.flow
config:
hh: "hello"
nodes:
- name: jobA
type: command
config:
command: echo "${hh} A"
- name: jobB
type: command
config:
command: echo "${hh} B"
dependsOn:
- jobA
3、打成zip包
[alex@hadoop102 azkaban]$ cd jobs/
[alex@hadoop102 jobs]$ zip -r base.zip base.project base.flow
adding: base.project (stored 0%)
adding: base.flow (deflated 18%)
网友评论