Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4904 YARN Log tooling enhancements
  3. YARN-5231

obtaining app logs for last 'n' bytes using CLI gives 'java.io.IOException'

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • 2.9.0
    • None
    • yarn
    • None

    Description

      Obtaining logs for last 'n' bytes gives the following exception

      yarn logs -applicationId application_1465421211793_0004 -containerId container_e07_1465421211793_0004_01_000001 -logFiles syslog -size -1000
      Exception in thread "main" java.io.IOException: The bytes were skipped are different from the caller requested
      	at org.apache.hadoop.yarn.logaggregation.AggregatedLogFormat$LogReader.readContainerLogsForALogType(AggregatedLogFormat.java:838)
      	at org.apache.hadoop.yarn.logaggregation.LogCLIHelpers.dumpAContainerLogsForALogType(LogCLIHelpers.java:300)
      	at org.apache.hadoop.yarn.logaggregation.LogCLIHelpers.dumpAContainersLogsForALogTypeWithoutNodeId(LogCLIHelpers.java:224)
      	at org.apache.hadoop.yarn.client.cli.LogsCLI.printContainerLogsForFinishedApplicationWithoutNodeId(LogsCLI.java:447)
      	at org.apache.hadoop.yarn.client.cli.LogsCLI.fetchContainerLogs(LogsCLI.java:782)
      	at org.apache.hadoop.yarn.client.cli.LogsCLI.run(LogsCLI.java:228)
      	at org.apache.hadoop.yarn.client.cli.LogsCLI.main(LogsCLI.java:264)
      

      Attachments

        1. YARN-5231.1.patch
          5 kB
          Xuan Gong

        Issue Links

          Activity

            People

              xgong Xuan Gong
              ssathish@hortonworks.com Sumana Sathish
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: