Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-431 [Umbrella] Complete/Stabilize YARN application log-handling
  3. YARN-1131

$yarn logs command should return an appropriate error message if YARN application is still running

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.1-beta
    • 2.2.0
    • client
    • None

    Description

      In the case when log aggregation is enabled, if a user submits MapReduce job and runs $ yarn logs -applicationId <app ID> while the YARN application is running, the command will return no message and return user back to shell. It is nice to tell the user that log aggregation is in progress.

      -bash-4.1$ /usr/bin/yarn logs -applicationId application_1377900193583_0002
      -bash-4.1$
      

      At the same time, if invalid application ID is given, YARN CLI should say that the application ID is incorrect rather than throwing NoSuchElementException.

      $ /usr/bin/yarn logs -applicationId application_00000
      Exception in thread "main" java.util.NoSuchElementException
      at com.google.common.base.AbstractIterator.next(AbstractIterator.java:75)
      at org.apache.hadoop.yarn.util.ConverterUtils.toApplicationId(ConverterUtils.java:124)
      at org.apache.hadoop.yarn.util.ConverterUtils.toApplicationId(ConverterUtils.java:119)
      at org.apache.hadoop.yarn.logaggregation.LogDumper.run(LogDumper.java:110)
      at org.apache.hadoop.yarn.logaggregation.LogDumper.main(LogDumper.java:255)
      
      

      Attachments

        1. YARN-1131.3.txt
          39 kB
          Siddharth Seth
        2. YARN-1131.2.txt
          36 kB
          Siddharth Seth
        3. YARN-1131.1.txt
          36 kB
          Siddharth Seth

        Activity

          People

            sseth Siddharth Seth
            tassapola Tassapol Athiapinya
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: