Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1621

Add CLI to list rows of <task attempt ID, container ID, host of container, state of container>



    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.2.0
    • None
    • None


      As more applications are moved to YARN, we need generic CLI to list rows of <task attempt ID, container ID, host of container, state of container>. Today if YARN application running in a container does hang, there is no way to find out more info because a user does not know where each attempt is running in.

      For each running application, it is useful to differentiate between running/succeeded/failed/killed containers.

      proposed yarn cli
      $ yarn application -list-containers -applicationId <appId> [-containerState <state of container>]
      where containerState is optional filter to list container in given state only.
      <container state> can be running/succeeded/killed/failed/all.
      A user can specify more than one container state at once e.g. KILLED,FAILED.
      <task attempt ID> <container ID> <host of container> <state of container> 

      CLI should work with running application/completed application. If a container runs many task attempts, all attempts should be shown. That will likely be the case of Tez container-reuse application.


        1. YARN-1621.1.patch
          31 kB
          Bartosz Ługowski
        2. YARN-1621.2.patch
          34 kB
          Bartosz Ługowski
        3. YARN-1621.3.patch
          31 kB
          Bartosz Ługowski
        4. YARN-1621.4.patch
          75 kB
          Bartosz Ługowski
        5. YARN-1621.5.patch
          79 kB
          Bartosz Ługowski
        6. YARN-1621.6.patch
          88 kB
          Bartosz Ługowski

        Issue Links



              noddi Bartosz Ługowski
              tassapola Tassapol Athiapinya
              0 Vote for this issue
              13 Start watching this issue