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

UserGroupInformation fails to login if thread's context classloader can't load HadoopLoginModule

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 0.23.0
    • Fix Version/s: 1.1.0, 0.23.1
    • Component/s: security
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      In a few hard-to-reproduce situations, we've seen a problem where the UGI login call causes a failure to login exception with the following cause:

      Caused by: javax.security.auth.login.LoginException: unable to find
      LoginModule class: org.apache.hadoop.security.UserGroupInformation
      $HadoopLoginModule

      After a bunch of debugging, I determined that this happens when the login occurs in a thread whose Context ClassLoader has been set to null.

        Attachments

        1. hdfs_threaded_test.c
          2 kB
          Todd Lipcon
        2. hadoop-7982.txt
          1 kB
          Todd Lipcon
        3. hadoop-7982-branch-1.txt
          1 kB
          Todd Lipcon

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: