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

Eric Yang commented on HADOOP-16590:
------------------------------------

[~nmarion] Thank you for the patch.  +1 on the patch.  I think this change is a 
good solution for IBM JDK.  I doubt anyone is running 32bit IBM JDK with 
Hadoop.  The shaded plugin failure seems to be caused by running this command 
in pre-commit test:

{code}mvn --batch-mode verify -fae --batch-mode -am -pl 
hadoop-client-modules/hadoop-client-check-invariants -pl 
hadoop-client-modules/hadoop-client-check-test-invariants -pl 
hadoop-client-modules/hadoop-client-integration-tests -Dtest=NoUnitTests 
-Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dfindbugs.skip=true{code}

The failure does not appear to be related to this patch.

{code}
[INFO] --- exec-maven-plugin:1.3.1:exec (check-jar-contents) @ 
hadoop-client-check-test-invariants ---
[ERROR] Found artifact with unexpected contents: 
'/home/eyang/test/hadoop/hadoop-client-modules/hadoop-client-minicluster/target/hadoop-client-minicluster-3.3.0-SNAPSHOT.jar'
    Please check the following and either correct the build or update
    the allowed list with reasoning.

    hdfs-default.xml.orig
{code}

I will commit this patch, if there is no objections.

> IBM Java has deprecated OS login module classes and OS principal classes.
> -------------------------------------------------------------------------
>
>                 Key: HADOOP-16590
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16590
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>            Reporter: Nicholas Marion
>            Priority: Major
>
> When building applications that rely on hadoop-commons and using IBM Java, 
> errors such as `{{Exception in thread "main" java.io.IOException: failure to 
> login}}` and `{{Unable to find JAAS 
> classes:com.ibm.security.auth.LinuxPrincipal}}` can be seen.
> IBM Java has deprecated the following OS Login Module classes:
> {code:java}
> com.ibm.security.auth.module.Win64LoginModule
> com.ibm.security.auth.module.NTLoginModule
> com.ibm.security.auth.module.AIX64LoginModule
> com.ibm.security.auth.module.AIXLoginModule
> com.ibm.security.auth.module.LinuxLoginModule
> {code}
> and replaced with
> {code:java}
> com.ibm.security.auth.module.JAASLoginModule{code}
> IBM Java has deprecated the following OS Principal classes:
>  
> {code:java}
> com.ibm.security.auth.UsernamePrincipal
> com.ibm.security.auth.NTUserPrincipal
> com.ibm.security.auth.AIXPrincipal
> com.ibm.security.auth.LinuxPrincipal
> {code}
> and replaced with
> {code:java}
> com.ibm.security.auth.UsernamePrincipal{code}
> Older issue HADOOP-15765 has same issue.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to