【Hadoop】Yarn 任务管理指令

  • 列出所有Application : yarn application -list

    # 可以根据状态过滤: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

    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

    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

    [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 : *
    

相关推荐

  1. 【Hadoop】Yarn 任务管理指令

    2024-02-18 05:56:02       26 阅读
  2. Linux 定时任务管理

    2024-02-18 05:56:02       33 阅读
  3. Linux计划任务管理

    2024-02-18 05:56:02       39 阅读
  4. 14.任务管理系统

    2024-02-18 05:56:02       27 阅读
  5. gocron定时任务管理

    2024-02-18 05:56:02       12 阅读
  6. Flink 任务指标监控

    2024-02-18 05:56:02       40 阅读
  7. C# 进程的任务管理

    2024-02-18 05:56:02       39 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-02-18 05:56:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-02-18 05:56:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-02-18 05:56:02       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-02-18 05:56:02       20 阅读

热门阅读

  1. 作业2.14

    2024-02-18 05:56:02       22 阅读
  2. CSS transition(过渡效果)详解

    2024-02-18 05:56:02       27 阅读
  3. Python循环语句——for循环的嵌套使用

    2024-02-18 05:56:02       35 阅读
  4. Python学习之路-爬虫进阶:爬虫框架

    2024-02-18 05:56:02       40 阅读
  5. 10个常考的前端手写题

    2024-02-18 05:56:02       38 阅读
  6. 基于Python的爬取天气数据及可视化分析

    2024-02-18 05:56:02       39 阅读
  7. 手机如何改自己的ip地址

    2024-02-18 05:56:02       32 阅读
  8. Spring-面试题

    2024-02-18 05:56:02       39 阅读
  9. 并查集详解及模板

    2024-02-18 05:56:02       49 阅读
  10. 学习数据结构和算法的第8天

    2024-02-18 05:56:02       40 阅读