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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 0.23.0
    • 1.1.0, 0.23.1
    • security
    • None
    • 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. hadoop-7982.txt
          1 kB
          Todd Lipcon
        2. hadoop-7982-branch-1.txt
          1 kB
          Todd Lipcon
        3. hdfs_threaded_test.c
          2 kB
          Todd Lipcon

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment