【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 : *
相关推荐
泡干脆面就番茄11 分钟前
Hadoop基础入门到实战:从Python理解MapReduce到HDFS架构与集群搭建
hadoop
QYR-分析16 分钟前
锂电制造核心装备:全球电芯焊接机市场格局与增长趋势研判
大数据·人工智能·制造
intcube25 分钟前
医药行业全面预算与费用管控:合规压力下的数字化管理转型
大数据·人工智能·企业管理·全面预算管理·财务规划
饼饼学习空间智能1 小时前
低空经济进入新兴支柱产业:物理AI如何重构低空智能监管系统?
大数据·深度学习·机器学习
此时不提桶,更待何时1 小时前
06-15-A-Kafka生态集成与流处理详解
分布式·kafka
名不经传的养虾人1 小时前
从0到1:企业级AI项目迭代日记 Vol.117|学会忘记,学会证明,学会设边界
大数据·人工智能·算法·企业ai·多agent协作
百胜软件@百胜软件1 小时前
百胜软件亮相华为全联接大会2026,共赴零售AI新生态
大数据·人工智能
骑士雄师1 小时前
rag的具体案例:通过es在意图识别的时候进行个命中。
大数据·elasticsearch·搜索引擎
磁场转动100万匹2 小时前
Hive 学习第一天:搞懂它是什么,并搭好可用的环境
hive·hadoop·学习
柏慧通云报餐2 小时前
智慧食堂食材溯源数字化方案|采购 - 入库 - 餐桌全链路记录体系落地实践
大数据·运维·人工智能