Hadoop Common
  1. Hadoop Common
  2. HADOOP-7982

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 0.23.0
    • Fix Version/s: 1.1.0, 0.23.1, 0.24.0
    • 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.

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

        Issue Links

          Activity

          Todd Lipcon created issue -
          Todd Lipcon made changes -
          Field Original Value New Value
          Attachment hadoop-7982-branch-1.txt [ 12511075 ]
          Todd Lipcon made changes -
          Link This issue relates to HIVE-2163 [ HIVE-2163 ]
          Carl Steinbach made changes -
          Link This issue relates to HIVE-2729 [ HIVE-2729 ]
          Todd Lipcon made changes -
          Attachment hadoop-7982.txt [ 12511188 ]
          Todd Lipcon made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Target Version/s 1.1.0, 0.23.1 [ 12316501, 12318884 ] 0.23.1, 1.1.0 [ 12318884, 12316501 ]
          Todd Lipcon made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Target Version/s 1.1.0, 0.23.1 [ 12316501, 12318884 ] 0.23.1, 1.1.0 [ 12318884, 12316501 ]
          Fix Version/s 0.24.0 [ 12317652 ]
          Fix Version/s 0.23.1 [ 12318884 ]
          Fix Version/s 1.1.0 [ 12316501 ]
          Resolution Fixed [ 1 ]
          Todd Lipcon made changes -
          Attachment hdfs_threaded_test.c [ 12512372 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development