3.6 多 job 工作流案例

步骤1: 创建 3 个 job

step1.job

# step1 job
type=command
command=touch /opt/module/azkaban/jobs/step1-createed-file.txt

step2.job

需要依赖 step1

# step2 job
type=command
command=echo 'this is step2 job'
dependencies=step1

step3.job

需要依赖 step2

# step3 job
type=command
command=echo 'this is step3 job'
dependencies=step2

步骤2: 3 个 job 一起打包到 zip 中

zip steps.zip step*

步骤3: 执行

Copyright © 尚硅谷大数据 2019 all right reserved,powered by Gitbook
该文件最后修订时间: 2019-03-30 17:47:51

results matching ""

    No results matching ""