[ 
https://issues.apache.org/jira/browse/YARN-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13762379#comment-13762379
 ] 

Tassapol Athiapinya commented on YARN-1175:
-------------------------------------------

Also, for distributed shell of running echo, AppMaster.stdout which does not 
print out anything, has LogLength of 0. There is inconsistency between the app 
master which does not call any print command and echo stdout which calls prints 
with "" (no end of line).
                
> 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

Reply via email to