[
https://issues.apache.org/jira/browse/YARN-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13762375#comment-13762375
]
Tassapol Athiapinya commented on YARN-1175:
-------------------------------------------
I understand that point. As an end user, it feels little bit weird. Looking at
unix filesystem, when a file is empty, the file has 0 bytes in size. In this
case, even if we do -shell_commands echo, LogLength would show up as 1.
> LogLength shown in $ yarn logs is 1 character longer than actual stdout
> -----------------------------------------------------------------------
>
> Key: YARN-1175
> URL: https://issues.apache.org/jira/browse/YARN-1175
> Project: Hadoop YARN
> Issue Type: Bug
> Components: applications/distributed-shell
> Reporter: Tassapol Athiapinya
> Fix For: 2.1.1-beta
>
>
> Run distributed shell with -shell_command "pwd". Do $ yarn logs on that
> application.
> Count number of characters in Log Contents field. Number of characters will
> be smaller than LogLength field by one.
> {code:title=mock-up yarn logs output}
> $ /usr/bin/yarn logs -applicationId application_1378424977532_0088
> ...
> LogType: stdout
> LogLength: 87
> Log Contents:
> /mypath/appcache/application_1378424977532_0088/container_1378424977532_0088_01_000002
> {code}
> ----
> {panel}
> Th length of
> "/mypath/appcache/application_1378424977532_0088/container_1378424977532_0088_01_000002"
> is 86.
> {panel}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira