yarn的常用命令

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)
2.yarn logs 查看日志
(1)查看Application 日志

yarn logs -applicationId

(2)查询Container 日志
yarn logs -applicationId -containerId
3.yarn applicationattempt 查看尝试运行的任务
(1)列出所有 Application 尝试的列表
yarn applicationattempt -list
(2)打印 ApplicationAttemp 状态
yarn applicationattempt -status
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

你可能感兴趣的:(大数据,大数据)