Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1175

LogLength shown in $ yarn logs is 1 character longer than actual stdout

    XMLWordPrintableJSON

Details

    Description

      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.

      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
      

      Th length of
      "/mypath/appcache/application_1378424977532_0088/container_1378424977532_0088_01_000002"
      is 86.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tassapola Tassapol Athiapinya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: