1. yarn top
类似linux里的top命令,查看正在运行的程序资源使用情况
2, yarn queue -status root.users.xxxx
查看指定queue使用情况
3,yarn application -list -appStates 【ALL,NEW,NEW_SAVING,SUBMITTED,ACCEPTED,RUNNING,FINISHED,FAILED,KILLED】
yarn application -list -appTypes [SUBMITTED, ACCEPTED, RUNNING]
查看app状态
yarn application -movetoqueue application_1528080031923_0067 -queue root.users.xxx
移动app到对应的队列
yarn application -kill application_1528080031923_0067
kill掉app
yarn application -status application_1528080031923_0067
查看app状态
4,yarn applicationattempt -list application_1528080031923_0064
查看app尝试信息
5,yarn classpath --glob
打印类路径
6,yarn container -list appattempt_1528080031923_0068_000001
打印正在执行任务的容器信息
yarn container -status container_1528080031923_0068_01_000002
打印当前容器信息
7,yarn jar [mainClass] args...
提交任务到yarn
8,yarn logs -applicationId application_1528080031923_0064
查看app运行日志
9,yarn node -all -list
查看所有节点信息
10,yarn daemonlog -getlevel n0:8088 rg.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl
查看守护进程日志级别
11,yarn resourcemanager [-format-state-store]
RMStateStore的格式化. 如果过去的应用程序不再需要,则清理RMStateStore
网友评论