【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 : *
相关推荐
Aomnitrix1 小时前
知识管理新范式——cpolar+Wiki.js打造企业级分布式知识库
开发语言·javascript·分布式
程序消消乐1 小时前
Kafka 入门指南:从 0 到 1 构建你的 Kafka 知识基础入门体系
分布式·kafka
智能化咨询1 小时前
Kafka架构:构建高吞吐量分布式消息系统的艺术——进阶优化与行业实践
分布式·架构·kafka
Chasing__Dreams1 小时前
kafka--基础知识点--5.2--最多一次、至少一次、精确一次
分布式·kafka
T06205142 小时前
工具变量-5G试点城市DID数据(2014-2025年
大数据
向往鹰的翱翔2 小时前
BKY莱德因:5大黑科技逆转时光
大数据·人工智能·科技·生活·健康医疗
鸿乃江边鸟3 小时前
向量化和列式存储
大数据·sql·向量化
IT毕设梦工厂4 小时前
大数据毕业设计选题推荐-基于大数据的客户购物订单数据分析与可视化系统-Hadoop-Spark-数据可视化-BigData
大数据·hadoop·数据分析·spark·毕业设计·源码·bigdata
java水泥工4 小时前
基于Echarts+HTML5可视化数据大屏展示-白茶大数据溯源平台V2
大数据·echarts·html5