yarn 杀死 application 命令

1.杀死 application

yarn application -kill + application id

 

2. 杀死job

hadoop job -kill  + jobID

3.批量杀application

for i in  `yarn application  -list | grep -w  填写需要筛选的任务关键字 | awk '{print $1}' | grep application_`; do yarn  application -kill $i; done

4.全量杀application

for i in  `yarn application  -list  | awk '{print $1}' | grep application_`; do yarn  application -kill $i; done

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页