【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 : *
相关推荐
Coder_Boy_26 分钟前
基于SpringAI的在线考试系统-AI智能化拓展
java·大数据·人工智能·spring boot
鲨莎分不晴30 分钟前
Apache Flume 入门到实战:构建可靠的大数据采集管道
大数据·apache·flume
沃达德软件42 分钟前
智慧政工中心功能解析
大数据·数据仓库·数据库开发·数据库架构·etl工程师
babe小鑫43 分钟前
大专学历进入快消大厂做终端销售分析的可行性分析
大数据
无忧智库1 小时前
深度拆解:某高校“十五五”教育大数据治理中心与智慧校园支撑平台建设方案(WORD)
大数据
Coder_Boy_1 小时前
基于SpringAI的在线考试系统-核心业务流程图(续)
java·大数据·人工智能·spring boot·流程图
marteker1 小时前
Shopify拟将商业融入每段AI对话
大数据
KJYHS2 小时前
查看类目数据主要有插件端和网页端两种方式,操作简单且数据维度全面,新手可按需选择,具体步骤如下:
大数据
专注数据的痴汉3 小时前
「数据获取」全国民用运输机场吞吐量排名(2006-2024)
java·大数据·服务器·数据库·信息可视化
子非衣3 小时前
CenOS7安装RabbitMQ(含延迟队列插件)
分布式·rabbitmq·ruby