[
https://issues.apache.org/jira/browse/YARN-5231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15330174#comment-15330174
]
Xuan Gong commented on YARN-5231:
---------------------------------
[~djp]
We already have the test cases in TestLogsCLI to cover this
> obtaining app logs for last 'n' bytes using CLI gives 'java.io.IOException'
> ---------------------------------------------------------------------------
>
> Key: YARN-5231
> URL: https://issues.apache.org/jira/browse/YARN-5231
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: yarn
> Affects Versions: 2.9.0
> Reporter: Sumana Sathish
> Assignee: Xuan Gong
> Priority: Blocker
> Attachments: YARN-5231.1.patch
>
>
> Obtaining logs for last 'n' bytes gives the following exception
> {code}
> 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)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]