yarn队列kill命令使用

1、单独杀掉指定任务

yarn队列阻塞了,kill掉阻塞任务 yarn application -kill application_1653456817054_0239

2、杀掉全部ACCEPTED 任务

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

posted @ 2022-07-05 14:09  shan_zhayidian  阅读(1420)  评论(0编辑  收藏  举报