黑猴子的家:Azkaban3.84.4之dependsOn

2021-06-10  本文已影响0人  黑猴子的家

依赖关系

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
nodes:
  - name: jobA
    type: command
    config:
      command: echo "猥琐发育,别浪"
  - name: jobB
    type: command
    config:
      command: echo "拖住,我偷塔"
    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%)
上一篇下一篇

猜你喜欢

热点阅读