Yarn常用命令
文章目录
1.yarn application 查看任务
(1)列出所有Application
yarn application -list
(2)根据 Application 状态过滤:yarn application -list -appStates (所有状态:ALL、NEW、NEW_SAVING、SUBMITTED、ACCEPTED、RUNNING、FINISHED、FAILED、KILLED)
yarn application -list -appStates FINISHED
2.yarn logs 查看日志
(1)查看Application 日志
yarn logs -applicationId <ApplicationId>
(2)查询Container 日志
yarn logs -applicationId <ApplicationId> -containerId <ContainerId>
3.yarn applicationattempt 查看尝试运行的任务
(1)列出所有 Application 尝试的列表
yarn applicationattempt -list <ApplicationId>
(2)打印 ApplicationAttemp 状态
yarn applicationattempt -status <ApplicationAttemptId>
4. yarn container查看容器
(1)列出所有 Container
yarn container -list <ApplicationAttemptId>
(2)打印 Container 状态
yarn container -status <ContainerId>
5.yarn node 查看节点状态
列出所有节点
yarn node -list -all
6.yarn rmadmin 跟新配置
加载队列配置
yarn rmadmin -refreshQueues
7.yarn queue 查看队列
打印队列信息
yarn queue -status <QueueName>
7.yarn queue 查看队列
打印队列信息
yarn queue -status <QueueName>