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

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha1
    • None
    • None
    • 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.1.patch
          6 kB
          Ram Venkatesh
        2. YARN-4842.2.patch
          12 kB
          Ram Venkatesh
        3. YARN-4842.3.patch
          17 kB
          Xuan Gong
        4. YARN-4842.4.patch
          24 kB
          Xuan Gong
        5. YARN-4842.5.patch
          27 kB
          Xuan Gong
        6. YARN-4842.6.patch
          27 kB
          Vinod Kumar Vavilapalli

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: