You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Akira Ajisaka (Jira)" <ji...@apache.org> on 2021/10/20 05:33:00 UTC

[jira] [Resolved] (HADOOP-17971) Exclude IBM Java security classes from being shaded/relocated

     [ https://issues.apache.org/jira/browse/HADOOP-17971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Akira Ajisaka resolved HADOOP-17971.
------------------------------------
    Fix Version/s: 3.3.2
                   3.2.3
                   3.4.0
       Resolution: Fixed

Committed to trunk, branch-3.3, branch-3.2, and branch-3.2.3. Thanks [~nmarion] for your contribution.

> Exclude IBM Java security classes from being shaded/relocated
> -------------------------------------------------------------
>
>                 Key: HADOOP-17971
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17971
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.3.1
>            Reporter: Nicholas Marion
>            Assignee: Nicholas Marion
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.0, 3.2.3, 3.3.2
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> IBM Java classes are shaded in Hadoop libraries, e.g. hadoop-client-api. When loaded by Spark, UserGroupInformation has exception:
> {noformat}
> org.apache.hadoop.security.KerberosAuthException: failure to login: javax.security.auth.login.LoginException: unable to find LoginModule class: org.apache.hadoop.shaded.com.ibm.security.auth.module.JAASLoginModule
> 	at org.apache.hadoop.security.UserGroupInformation.doSubjectLogin(UserGroupInformation.java:1986)
> 	at org.apache.hadoop.security.UserGroupInformation.createLoginUser(UserGroupInformation.java:719)
> 	at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:669)
> 	at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:579)
> 	at org.apache.spark.util.Utils$.$anonfun$getCurrentUserName$1(Utils.scala:2609)
> 	at org.apache.spark.util.Utils$$$Lambda$1388/0x00000000338e9c30.apply(Unknown Source)
> 	at scala.Option.getOrElse(Option.scala:189)
> {noformat}
> When I manually compile UserGroupInformation.java without maven (aka relocation) and inject the class files into hadoop-client-api jar; it works.
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org