-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-18750. Remove javax/servlet shading in hadoop-client-api #5695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
💔 -1 overall
This message was automatically generated. |
ayushtkn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is there since 3.0-alpha release, was added as part of HADOOP-11804, why Spark fails with 3.3.4 only?
Isn't this an incompatible change for Hadoop?
|
The changes breaks Hadoop client shading because the classpath prefix is not allowed in the shaded client jar. @sunchao any ideas why this is an issue with Hadoop 3.3.4...? |
|
@jojochuang @ayushtkn I think this has been an issue for a while (see https://issues.apache.org/jira/browse/SPARK-40964 for the same bug report) too, but just hasn't got a lot of attention - I just saw this issue today. Long time back we also encountered a similar issue related to
In summary I think it'd be helpful to exclude |
|
+1 I think we can remove javax.servlet from relocation. |
Ok. But still it breaks the build. I suspect we need to relax the allowed classpath prefix rule. @kamalsharma2 can you check if that's the case and update PR? It would be this script that need to update: https://github.com/apache/hadoop/blob/trunk/hadoop-client-modules/hadoop-client-check-invariants/src/test/resources/ensure-jars-have-correct-contents.sh |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
I checked out the branch and ran the exact same command in precommit test.
The error is it cannot find the classpath:
|
|
🎊 +1 overall
This message was automatically generated. |
|
@jojochuang thanks for pointing out the issue. I've removed the shading of javax.servlet from other hadoop client modules too, can you please review it? |
|
I am not sure about it, In my personal experience: shading without relocation often leads to strange issues if there are different versions of the same dependency is the classpath and this jar should be widely used. Does the solution pointed by @sunchao helps? or at worst if there is only few classes which creates issues, can we exclude just those classes from relocation? In any case, I am not sure about this. I will pass to other more experienced folks to take a call on this. |
|
We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
Description of PR
This PR aims to resolve HADOOP-18750
How was this patch tested?
Tested locally.