Hadoop Common
  1. Hadoop Common
  2. HADOOP-6941

Support non-SUN JREs in UserGroupInformation

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.3, 2.0.0-alpha, 0.23.7
    • Component/s: None
    • Labels:
      None
    • Environment:

      SLES 11, Apache Harmony 6 and SLES 11, IBM Java 6

    • Hadoop Flags:
      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

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Devaraj Das
              Reporter:
              Stephen Watt
            • Votes:
              0 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development