yarn application -list
语法
yarn application -list -appStates (所有状态:ALL、NEW、NEW_SAVING、SUBMITTED、ACCEPTED、RUNNING、FINISHED、FAILED、KILLED)
例如
yarn application -list -appStates FINISHED
根据appid kill
任务
yarn application -kill application_1719625561008_0003
语法
yarn logs -applicationId <ApplicationId>
案例
yarn logs -applicationId application_1719625561008_0003
语法
yarn logs -applicationId <ApplicationId> -containerId <ContainerId>
案例
yarn logs -applicationId application_1719625561008_0003 -containerId container_1719625561008_0003_01_000001
语法
yarn applicationattempt -list <ApplicationId>
案例
yarn applicationattempt -list application_1719625561008_0003
这里我们可以查看到ContainerId
和ApplicationAttemptId
语法
yarn applicationattempt -status <ApplicationAttemptId>
案例
yarn applicationattempt -status appattempt_1719625561008_0003_000001
语法
yarn container -list <ApplicationAttemptId>
案例1(运行完的任务)
容器只有在任务运行的时候,才能查看到
运行结束的任务,是查看不到对应的容器的
yarn container -list appattempt_1719625561008_0003_000001
案例2(运行中的任务)
yarn container -list appattempt_1719625561008_0004_000001
语法
yarn container -status <ContainerId>
案例
yarn container -status container_1719625561008_0003_01_000001
案例
yarn node -list -all
修改配置后,直接执行该命令,就可以加载最新配置,无需重启Yarn服务
对应配置文件:capacity-scheduler.xml
yarn rmadmin -refreshQueues
语法
yarn queue -status <QueueName>
案例
yarn queue -status default
页面端查看