Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7101

UserGroupInformation.getCurrentUser() fails when called from non-Hadoop JAAS context

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 1.2.0, 0.23.0
    • Component/s: security
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      If a Hadoop client is run from inside a container like Tomcat, and the current AccessControlContext has a Subject associated with it that is not created by Hadoop, then UserGroupInformation.getCurrentUser() will throw NoSuchElementException, since it assumes that any Subject will have a hadoop User principal.

        Attachments

        1. hadoop-7101.txt
          3 kB
          Todd Lipcon
        2. hadoop-7101.branch-1.patch
          2 kB
          Suresh Srinivas

          Issue Links

            Activity

              People

              • Assignee:
                tlipcon Todd Lipcon
                Reporter:
                tlipcon Todd Lipcon
              • Votes:
                0 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: