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

5.linux批量kill

jps | grep soarModel-1.0-jar-with-dependencies.jar | grep -v grep |awk '{print $1}' |xargs kill -s 9

6.kubernetes 批量杀pod

kubectl get pod | awk '{print $1}'| xargs kubectl delete pod

你可能感兴趣的:(大数据,yarn,杀死,job,命令)