YARN的命令
-
yarn top
类似于Linux的top命令,查看正在运行的程序资源占用情况。
-
yarn queue -status root.default
查看指定队列使用情况,下文会讲解任务队列
-
yarn application
-
-list
# 通过任务的状态,列举YARN的任务。使用 -appStates 指定状态 # 任务状态: ALL、NEW、NEW_SAVING、SUBMITTED、ACCEPTED、RUNNING、FINISHED、FAILED、KILLED # e.g. # 查看所有正在运行的任务 [root@qianfeng01 ~]# yarn application -list -appStates RUNNING # 查看所有的失败的任务 [root@qianfeng01 ~]# yarn application -list -appStates FAILED
-
-movetoqueue
# 将一个任务移动到指定的队列中 [root@qianfeng01 ~]# yarn application -movetoqueue application_xxxxxx_xxx -queue root.small
-
-kill
# 杀死指定的任务 [root@qianfeng01 ~]# yarn application -kill application_xxxxxx_xxx
-
-
yarn container
-
-list
-