yarn application
一、-list 列出全部 application 信息
示例:yarn application -list
二、-appStates <States> 跟 -list 一塊兒使用,用來篩選不一樣狀態的 application,多個用","分隔;
全部狀態:ALL,NEW,NEW_SAVING,SUBMITTED,ACCEPTED,RUNNING,FINISHED,FAILED,KILLED
示例:yarn application -list -appStates RUNNING
三、-appTypes <Types> 跟 -list 一塊兒使用,用來篩選不一樣類型的 application,多個用","分隔;
如 MAPREDUCE 示例:yarn application -list -appTypes MAPREDUCE
四、-kill <Application ID> 殺死一個 application,須要指定一個 Application ID
示例:yarn application -kill application_1526100291229_206393
五、-status <Application ID> 列出 某個application 的狀態
示例:yarn application -status application_1526100291229_206393
六、-movetoqueue <Application ID> 移動 application 到其餘的 queue,不能單獨使用
七、-queue <Queue Name> 與 movetoqueue 命令一塊兒使用,指定移動到哪一個 queue
示例:yarn application -movetoqueue application_1526100291229_206393 -queue other app