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 "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/10/19 20:09:00 UTC
[jira] [Work logged] (HADOOP-17971) IBM Java security classes
should be excluded from relocation in shaded Hadoop libraries
[ https://issues.apache.org/jira/browse/HADOOP-17971?focusedWorklogId=667244&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-667244 ]
ASF GitHub Bot logged work on HADOOP-17971:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 19/Oct/21 20:08
Start Date: 19/Oct/21 20:08
Worklog Time Spent: 10m
Work Description: n-marion opened a new pull request #3567:
URL: https://github.com/apache/hadoop/pull/3567
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
Exclude IBM Java security classes located in com.ibm.security* from being shaded.
### How was this patch tested?
Manual injection of UserGroupInformation class files (which contain references to com.ibm.security classes) that were compiled manually.
I followed bug fixes for similar issues. IBM java isn't actually used in source code except being referenced when it is the running JVM.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 667244)
Remaining Estimate: 0h
Time Spent: 10m
> IBM Java security classes should be excluded from relocation in shaded Hadoop libraries
> ---------------------------------------------------------------------------------------
>
> 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
> Priority: Major
> Time Spent: 10m
> 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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org