Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何杀死所有过滤的 oozie 工作?
例如,我想杀死所有 oozie 工作,下一个条件:
oozie jobs -filter name=calculationx
这应该可以工作(请注意,缺少一些字段,例如 Oozie host & ect'):
for jobId in `oozie jobs -filter name=calculationx | grep RUNNING | cut -d" " -f1` do echo "Killing job ${jobId}" job -kill ${jobId} done