Yarn常用命令
Yarn常用命令文章目录1.yarn application 查看任务2.yarn logs 查看日志3.yarn applicationattempt 查看尝试运行的任务4. yarn container查看容器5.yarn node 查看节点状态6.yarn rmadmin 跟新配置7.yarn queue 查看队列7.yarn queue 查看队列1.yarn application 查看任
·
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>
更多推荐
已为社区贡献1条内容
所有评论(0)