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

Support non-SUN JREs in UserGroupInformation

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.3, 2.0.0-alpha, 0.23.7
    • None
    • None
    • SLES 11, Apache Harmony 6 and SLES 11, IBM Java 6

    • Reviewed

    Description

      Attempting to format the namenode or attempting to start Hadoop using Apache Harmony or the IBM Java JREs results in the following exception:

      10/09/07 16:35:05 ERROR namenode.NameNode: java.lang.NoClassDefFoundError: com.sun.security.auth.UnixPrincipal
      at org.apache.hadoop.security.UserGroupInformation.<clinit>(UserGroupInformation.java:223)
      at java.lang.J9VMInternals.initializeImpl(Native Method)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.setConfigurationParameters(FSNamesystem.java:420)
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:391)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1240)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1348)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1368)
      Caused by: java.lang.ClassNotFoundException: com.sun.security.auth.UnixPrincipal
      at java.net.URLClassLoader.findClass(URLClassLoader.java:421)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
      ... 8 more

      This is a negative regression as previous versions of Hadoop worked with these JREs

      Attachments

        1. HADOOP-6941.patch
          4 kB
          Stephen Watt
        2. hadoop-6941.patch
          5 kB
          Eli Collins
        3. 6941-branch1.patch
          18 kB
          Devaraj Das
        4. 6941-1.patch
          21 kB
          Devaraj Das

        Issue Links

        Activity

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

          People

            ddas Devaraj Das
            wattsteve Stephen Watt
            Votes:
            0 Vote for this issue
            Watchers:
            22 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment