yarn 命令学习:yarn application

yarn application
说明:打印  application(s) 报告,或者 kill 掉 application,共7个可选项

1、-list          列出所有 application 信息
    示例:yarn  application -list
    打印信息:

Application-Id

Application-Name

Application-Type

User

Queue

State

Final-State

Progress

Tracking-URL

application_1479736113445_2577

select count(distinct user_id) from che...10(Stage-1)

MAPREDUCE

anonymous

root.anonymous

RUNNING

UNDEFINED

46.16%

http://hadoop01:52511


    
2、-appStates           跟 -list 一起使用,用来筛选不同状态的 application,多个用","分隔;
                             所有状态:ALL,NEW,NEW_SAVING,SUBMITTED,ACCEPTED,RUNNING,FINISHED,FAILED,KILLED
    示例:yarn  application -list -appStates RUNNING

3、-appTypes             跟 -list 一起使用,用来筛选不同类型的 application,多个用","分隔;
                             如 MAPREDUCE
    示例:yarn  application -list -appTypes MAPREDUCE

4、-kill           杀死一个 application,需要指定一个 Application ID

    示例:yarn  application -kill application_1479736113445_2577

5、-status         列出 某个application 的状态

    示例:yarn  application -status  application_1479736113445_2577

Application Report :
     Application-Id : application_1479736113445_2577
     Application-Name : select count(distinct user_id) from che...10(Stage-1)
     Application-Type : MAPREDUCE
     User : anonymous
     Queue : root.anonymous
     Start-Time : 1480589105033
     Finish-Time : 1480589167197
     Progress : 100%
     State : FINISHED
     Final-State : SUCCEEDED
     Tracking-URL : http://hadoop02:19888/jobhistory/job/job_1479736113445_2577
     RPC Port : 34182
     AM Host : hadoop01
     Aggregate Resource Allocation : 452992 MB-seconds, 437 vcore-seconds
     Log Aggregation Status : SUCCEEDED
     Diagnostics :

6、-movetoqueue    移动 application 到其他的 queue, 不能单独使用
7、-queue                 与 movetoqueue 命令一起使用,指定移动到哪个 queue
     示例:yarn  application -movetoqueue application_1479736113445_2577 -queue other







你可能感兴趣的:(hadoop,yarn)