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. HADOOP-6941.patch
        4 kB
        Stephen Watt
      2. hadoop-6941.patch
        5 kB
        Eli Collins
      3. 6941-1.patch
        21 kB
        Devaraj Das
      4. 6941-branch1.patch
        18 kB
        Devaraj Das

        Issue Links

          Activity

          Thomas Graves made changes -
          Fix Version/s 0.23.7 [ 12323956 ]
          Matt Foley made changes -
          Target Version/s 1.1.0, 0.23.3 [ 12316501, 12320059 ]
          Matt Foley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Luke Lu made changes -
          Assignee Luke Lu [ vicaya ] Devaraj Das [ devaraj ]
          Todd Lipcon made changes -
          Link This issue breaks HADOOP-8251 [ HADOOP-8251 ]
          Arun C Murthy made changes -
          Fix Version/s 2.0.0 [ 12320352 ]
          Fix Version/s 0.23.3 [ 12320059 ]
          Devaraj Das made changes -
          Link This issue relates to HADOOP-8192 [ HADOOP-8192 ]
          Devaraj Das made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Target Version/s 0.23.3, 1.1.0 [ 12320059, 12316501 ] 1.1.0, 0.23.3 [ 12316501, 12320059 ]
          Fix Version/s 0.23.3 [ 12320059 ]
          Fix Version/s 1.0.3 [ 12320248 ]
          Resolution Fixed [ 1 ]
          Devaraj Das made changes -
          Attachment 6941-branch1.patch [ 12518751 ]
          Eli Collins made changes -
          Fix Version/s 0.24.0 [ 12317652 ]
          Target Version/s 1.1.0, 0.23.3 [ 12316501, 12320059 ]
          Devaraj Das made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Devaraj Das made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Devaraj Das made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Devaraj Das made changes -
          Attachment 6941-1.patch [ 12518401 ]
          Eugene Koontz made changes -
          Link This issue is related to ZOOKEEPER-1236 [ ZOOKEEPER-1236 ]
          Luke Lu made changes -
          Assignee Stephen Watt [ wattsteve ] Luke Lu [ vicaya ]
          Arun C Murthy made changes -
          Fix Version/s 0.24.0 [ 12317652 ]
          Fix Version/s 0.21.1 [ 12315270 ]
          Fix Version/s 0.23.0 [ 12315569 ]
          Konstantin Shvachko made changes -
          Fix Version/s 0.22.0 [ 12314296 ]
          Todd Lipcon made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Eli Collins made changes -
          Link This issue relates to HADOOP-7211 [ HADOOP-7211 ]
          Eli Collins made changes -
          Link This issue relates to HADOOP-6924 [ HADOOP-6924 ]
          Eli Collins made changes -
          Summary Hadoop 0.21 will not work on non-SUN JREs due to use of com.sun.security in org/apache/hadoop/security/UserGroupInformation.java Support non-SUN JREs in UserGroupInformation
          Eli Collins made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Hadoop Flags [Reviewed]
          Eli Collins made changes -
          Fix Version/s 0.21.1 [ 12315270 ]
          Fix Version/s 0.22.0 [ 12314296 ]
          Eli Collins made changes -
          Fix Version/s 0.23.0 [ 12315569 ]
          Fix Version/s 0.21.1 [ 12315270 ]
          Affects Version/s 0.21.0 [ 12313563 ]
          Eli Collins made changes -
          Attachment hadoop-6941.patch [ 12474580 ]
          Todd Lipcon made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Assignee Stephen Watt [ wattsteve ]
          Stephen Watt made changes -
          Fix Version/s 0.21.1 [ 12315270 ]
          Nigel Daley made changes -
          Fix Version/s 0.22.0 [ 12314296 ]
          Fix Version/s 0.21.1 [ 12315270 ]
          Stephen Watt made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Stephen Watt made changes -
          Attachment HADOOP-6941.patch [ 12459840 ]
          Guillermo Cabrera made changes -
          Link This issue is related to HADOOP-7027 [ HADOOP-7027 ]
          Tom White made changes -
          Field Original Value New Value
          Fix Version/s 0.21.0 [ 12313563 ]
          Stephen Watt created 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