You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2011/02/24 03:08:38 UTC
[jira] Updated: (HADOOP-6941) Hadoop 0.21 will not work on non-SUN
JREs due to use of com.sun.security in
org/apache/hadoop/security/UserGroupInformation.java
[ https://issues.apache.org/jira/browse/HADOOP-6941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Lipcon updated HADOOP-6941:
--------------------------------
Assignee: Stephen Watt
Status: Open (was: Patch Available)
Looks like this patch introduces the following 5 new warnings:
[javac] /grid/0/hudson/hudson-slave/workspace/PreCommit-HADOOP-Build/trunk/src/java/org/apache/hadoop/security/UserGroupInformation.java:310: warning: [unchecked] unchecked cast
[javac] found : java.lang.Class<capture#778 of ?>
[javac] required: java.lang.Class<? extends java.security.Principal>
[javac] cl.loadClass("com.ibm.security.auth.UsernamePrincipal");
[javac] ^
[javac] /grid/0/hudson/hudson-slave/workspace/PreCommit-HADOOP-Build/trunk/src/java/org/apache/hadoop/security/UserGroupInformation.java:316: warning: [unchecked] unchecked cast
[javac] found : java.lang.Class<capture#154 of ?>
[javac] required: java.lang.Class<? extends java.security.Principal>
[javac] cl.loadClass("com.ibm.security.auth.UsernamePrincipal");
[javac] ^
[javac] /grid/0/hudson/hudson-slave/workspace/PreCommit-HADOOP-Build/trunk/src/java/org/apache/hadoop/security/UserGroupInformation.java:319: warning: [unchecked] unchecked cast
[javac] found : java.lang.Class<capture#539 of ?>
[javac] required: java.lang.Class<? extends java.security.Principal>
[javac] cl.loadClass("com.ibm.security.auth.LinuxPrincipal");
[javac] ^
[javac] /grid/0/hudson/hudson-slave/workspace/PreCommit-HADOOP-Build/trunk/src/java/org/apache/hadoop/security/UserGroupInformation.java:326: warning: [unchecked] unchecked cast
[javac] found : java.lang.Class<capture#96 of ?>
[javac] required: java.lang.Class<? extends java.security.Principal>
[javac] cl.loadClass("com.sun.security.auth.NTUserPrincipal");
[javac] ^
[javac] /grid/0/hudson/hudson-slave/workspace/PreCommit-HADOOP-Build/trunk/src/java/org/apache/hadoop/security/UserGroupInformation.java:330: warning: [unchecked] unchecked cast
[javac] found : java.lang.Class<capture#788 of ?>
[javac] required: java.lang.Class<? extends java.security.Principal>
[javac] cl.loadClass("com.sun.security.auth.UnixPrincipal");
> Hadoop 0.21 will not work on non-SUN JREs due to use of com.sun.security in org/apache/hadoop/security/UserGroupInformation.java
> --------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-6941
> URL: https://issues.apache.org/jira/browse/HADOOP-6941
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 0.21.0
> Environment: SLES 11, Apache Harmony 6 and SLES 11, IBM Java 6
> Reporter: Stephen Watt
> Assignee: Stephen Watt
> Fix For: 0.21.1
>
> Attachments: HADOOP-6941.patch
>
>
> 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
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira