Tassapol Athiapinya created YARN-1175:
-----------------------------------------

             Summary: 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