YARNコマンド

YARNコマンド

  • 糸トップ

    Linux の top コマンドと同様に、実行中のプログラムのリソース使用量を確認します。

  • 糸キュー -ステータス root.default

    指定したキューの使用状況を表示します。タスクキューについては以下で説明します

  • 糸の応用

    • -リスト

      # 通过任务的状态,列举YARN的任务。使用 -appStates 指定状态
      # 任务状态: ALL、NEW、NEW_SAVING、SUBMITTED、ACCEPTED、RUNNING、FINISHED、FAILED、KILLED
      # e.g.
      # 查看所有正在运行的任务
      [root@qianfeng01 ~]# yarn application -list -appStates RUNNING
      # 查看所有的失败的任务
      [root@qianfeng01 ~]# yarn application -list -appStates FAILED
      
    • -movetoqueue

      # 将一个任务移动到指定的队列中
      [root@qianfeng01 ~]# yarn application -movetoqueue application_xxxxxx_xxx -queue root.small
      
    • -殺す

      # 杀死指定的任务
      [root@qianfeng01 ~]# yarn application -kill application_xxxxxx_xxx
      
  • 糸コンテナ

    • -リスト

      # 查看正在执行的任务的容器信息
      [root@qianfeng01 ~]# yarn container -list application_xxxxxx_xxx
      
    • -スターテス

      # 查看指定容器信息
      [root@qianfeng01 ~]# yarn container -status container_xxxxx
      
  • 糸の瓶

    # 提交任务到YARN执行
    [root@qianfeng01 ~]# yarn jar $HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.3.1.jar /input /output
    
  • 糸の丸太

    # 查看YARN的程序运行时的日志信息
    [root@qianfeng01 ~]# yarn logs -applicationId application_1528080031923_0064
    
  • 糸ノード -all -list

    すべてのノード情報を表示する

[Qianfeng Education] ビッグデータ開発に関する完全なチュートリアル セット、史上最も包括的なビッグデータ学習ビデオ

おすすめ

転載: blog.csdn.net/longz_org_cn/article/details/131779336