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

Clean up YARN CLI app list to show only running apps.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.1-beta
    • Component/s: client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Once a user brings up YARN daemon, runs jobs, jobs will stay in output returned by $ yarn application -list even after jobs complete already. We want YARN command line to clean up this list. Specifically, we want to remove applications with FINISHED state(not Final-State) or KILLED state from the result.

      [user1@host1 ~]$ yarn application -list
      Total Applications:150
                      Application-Id	    Application-Name	    Application-Type	      User	     Queue	             State       Final-State	       Progress	                       Tracking-URL
      application_1374638600275_0109	           Sleep job	           MAPREDUCE	    user1	   default	            KILLED            KILLED	           100%	   host1:54059
      application_1374638600275_0121	           Sleep job	           MAPREDUCE	    user1	   default	          FINISHED         SUCCEEDED	           100%	host1:19888/jobhistory/job/job_1374638600275_0121
      application_1374638600275_0020	           Sleep job	           MAPREDUCE	    user1	   default	          FINISHED         SUCCEEDED	           100%	host1:19888/jobhistory/job/job_1374638600275_0020
      application_1374638600275_0038	           Sleep job	           MAPREDUCE	    user1	   default	
      ....
      

        Attachments

        1. YARN-1074.8.patch
          58 kB
          Xuan Gong
        2. YARN-1074.7.patch
          56 kB
          Xuan Gong
        3. YARN-1074.6.patch
          56 kB
          Xuan Gong
        4. YARN-1074.5.patch
          50 kB
          Xuan Gong
        5. YARN-1074.4.patch
          48 kB
          Xuan Gong
        6. YARN-1074.3.patch
          48 kB
          Xuan Gong
        7. YARN-1074.2.patch
          47 kB
          Xuan Gong
        8. YARN-1074.1.patch
          41 kB
          Xuan Gong

          Issue Links

            Activity

              People

              • Assignee:
                xgong Xuan Gong
                Reporter:
                tassapola Tassapol Athiapinya
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: