【Hadoop】Yarn 任务管理指令

  • 列出所有Application : yarn application -list

    scala 复制代码
    # 可以根据状态过滤:ALL、NEW、NEW_SAVING、SUBMITTED、ACCEPTED、RUNNING、FINISHED、FAILED、KILLED
    yarn application -list -appStates FINISHED
    application_1652832924022_57402 DDOS-Detect-Engine_Ver000                      SPARK          root          tech97                 RUNNING               UNDEFINED              10%             http://10.230.20.37:4040
    application_1652832924022_57401              ETL_dns                   SPARK          root          tech97                 RUNNING               UNDEFINED                  10%                 http://10.230.20.37:4041
    application_1652832924022_57341             web_stat                   SPARK          root          tech97                 RUNNING               UNDEFINED                  10%                 http://10.230.20.3:41071
  • 查看尝试运行的应用 yarn applicationattempt -list application_1612577921195_0001

    scala 复制代码
    23/06/24 10:38:21 INFO impl.TimelineClientImpl: Timeline service address: http://maxc84:8188/ws/v1/timeline/
    23/06/24 10:38:22 INFO client.ConfiguredRMFailoverProxyProvider: Failing over to rm2
    Total number of application attempts :1
             ApplicationAttempt-Id                 State                        AM-Container-Id                            Tracking-URL
    appattempt_1652832924022_57401_000001               FINISHED    container_e18_1652832924022_57401_01_000001     http://maxc85:8088/proxy/application_1652832924022_57401/
  • 杀死指定应用 : yarn application -kill application_1612577921195_0001

  • 查看指定应用日志 : yarn logs -applicationId application_1612577921195_0001

  • 查看节点状态 : yarn node -list -all

    scala 复制代码
    Total Nodes:35
             Node-Id             Node-State Node-Http-Address       Number-of-Running-Containers
         maxc8:45454                RUNNING        maxc8:8042                                  3
         maxc3:45454                RUNNING        maxc3:8042                                  7
        maxc18:45454                RUNNING       maxc18:8042                                  5
        maxc25:45454                RUNNING       maxc25:8042                                  3
        maxc16:45454                RUNNING       maxc16:8042                                  5
        maxc34:45454                RUNNING       maxc34:8042                                  5
        maxc22:45454                RUNNING       maxc22:8042                                  4
        maxc31:45454                RUNNING       maxc31:8042                                  1
        maxc13:45454                RUNNING       maxc13:8042                                  7
                             
  • 查看队列状态 : yarn queue -status wa

    scala 复制代码
    [root@maxc84 ~]# yarn queue -status wa
    23/06/24 10:58:58 INFO impl.TimelineClientImpl: Timeline service address: http://maxc84:8188/ws/v1/timeline/
    23/06/24 10:58:59 INFO client.ConfiguredRMFailoverProxyProvider: Failing over to rm2
    Queue Information : 
    Queue Name : tech97
            State : RUNNING
            Capacity : 50.0%
            Current Capacity : 41.7%
            Maximum Capacity : 70.0%
            Default Node Label expression : 
            Accessible Node Labels : *
相关推荐
时序数据说4 小时前
时序数据库市场前景分析
大数据·数据库·物联网·开源·时序数据库
2501_930104048 小时前
GitCode 疑难问题诊疗:全方位指南
大数据·elasticsearch·gitcode
健康平安的活着8 小时前
es7.17.x es服务yellow状态的排查&查看节点,分片状态数量
大数据·elasticsearch·搜索引擎
念念01078 小时前
基于MATLAB多智能体强化学习的出租车资源配置优化系统设计与实现
大数据·人工智能·matlab
sunxinyu10 小时前
曲面/线 拟合gnuplot
大数据·线性回归·数据处理·数据拟合·二维三维空间数据
专注API从业者11 小时前
基于 Flink 的淘宝实时数据管道设计:商品详情流式处理与异构存储
大数据·前端·数据库·数据挖掘·flink
淡酒交魂13 小时前
「Flink」业务搭建方法总结
大数据·数据挖掘·数据分析
mask哥13 小时前
详解flink java基础(一)
java·大数据·微服务·flink·实时计算·领域驱动
TDengine (老段)13 小时前
TDengine IDMP 高级功能(4. 元素引用)
大数据·数据库·人工智能·物联网·数据分析·时序数据库·tdengine
livemetee13 小时前
Flink2.0学习笔记:Flink服务器搭建与flink作业提交
大数据·笔记·学习·flink