hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kumar Ravi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-6941) Support non-SUN JREs in UserGroupInformation
Date Fri, 27 Apr 2012 21:16:52 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-6941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263971#comment-13263971
] 

Kumar Ravi commented on HADOOP-6941:
------------------------------------

I am seeing the following message running IBM Java 7 running branch-1.0 code.
compile:
     [echo] contrib: gridmix
    [javac] Compiling 31 source files to /home/hadoop/branch-1.0_0427/build/contrib/gridmix/classes
    [javac] /home/hadoop/branch-1.0_0427/src/contrib/gridmix/src/java/org/apache/hadoop/mapred/gridmix/Gridmix.java:396:
error: type argument ? extends T is not within bounds of type-variable E
    [javac]   private <T> String getEnumValues(Enum<? extends T>[] e) {
    [javac]                                         ^
    [javac]   where T,E are type-variables:
    [javac]     T extends Object declared in method <T>getEnumValues(Enum<? extends
T>[])
    [javac]     E extends Enum<E> declared in class Enum
    [javac] /home/hadoop/branch-1.0_0427/src/contrib/gridmix/src/java/org/apache/hadoop/mapred/gridmix/Gridmix.java:399:
error: type argument ? extends T is not within bounds of type-variable E
    [javac]     for (Enum<? extends T> v : e) {
    [javac]               ^
    [javac]   where T,E are type-variables:
    [javac]     T extends Object declared in method <T>getEnumValues(Enum<? extends
T>[])
    [javac]     E extends Enum<E> declared in class Enum
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors

BUILD FAILED
/home/hadoop/branch-1.0_0427/build.xml:703: The following error occurred while executing this
line:
/home/hadoop/branch-1.0_0427/src/contrib/build.xml:30: The following error occurred while
executing this line:
/home/hadoop/branch-1.0_0427/src/contrib/build-contrib.xml:185: Compile failed; see the compiler
error output for details.


                
> Support non-SUN JREs in UserGroupInformation
> --------------------------------------------
>
>                 Key: HADOOP-6941
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6941
>             Project: Hadoop Common
>          Issue Type: Bug
>         Environment: SLES 11, Apache Harmony 6 and SLES 11, IBM Java 6
>            Reporter: Stephen Watt
>            Assignee: Devaraj Das
>             Fix For: 1.0.3, 2.0.0
>
>         Attachments: 6941-1.patch, 6941-branch1.patch, HADOOP-6941.patch, 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message