Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4904 YARN Log tooling enhancements
  3. YARN-4842

"yarn logs" command should not require the appOwner argument

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The yarn logs command is among the most common ways to troubleshoot yarn app failures, especially by an admin.

      Currently if you run the command as a user different from the job owner, the command will fail with a subtle message that it could not find the app under the running user's name. This can be confusing especially to new admins.

      We can figure out the job owner from the app report returned by the RM or the AHS, or, by looking for the app directory using a glob pattern, so in most cases this error can be avoided.

      Question - are there scenarios where users will still need to specify the -appOwner option?

        Attachments

        1. YARN-4842.6.patch
          27 kB
          Vinod Kumar Vavilapalli
        2. YARN-4842.5.patch
          27 kB
          Xuan Gong
        3. YARN-4842.4.patch
          24 kB
          Xuan Gong
        4. YARN-4842.3.patch
          17 kB
          Xuan Gong
        5. YARN-4842.2.patch
          12 kB
          Ram Venkatesh
        6. YARN-4842.1.patch
          6 kB
          Ram Venkatesh

          Issue Links

            Activity

              People

              • Assignee:
                xgong Xuan Gong
                Reporter:
                venkateshrin Ram Venkatesh
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: