-
Notifications
You must be signed in to change notification settings - Fork 28.5k
[SPARK-49988][BUILD] Remove unused Hadoop dependency management #48491
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
--> | ||
<dependency> | ||
<groupId>xerces</groupId> | ||
<artifactId>xercesImpl</artifactId> |
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.
Is it because Apache Spark doesn't require the xerces:xercesImpl
dependency?
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.
If that's the case, should we clean up the corresponding binary LICENSE of xerces:xercesImpl
?
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.
it's a transitive dep of hadoop vanilla client, spark does not directly use it.
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.
right, updated LICENSE and NOTICE
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.
It would be best to declare this change in the pr description.
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.
updated
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.
+1, LGTM(pending tests)
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.
Thank you. Is this tested with Maven too, @pan3793 ?
@dongjoon-hyun I tested the maven build, run |
We can add the following code to
|
@LuciferYang thanks for the information, I trigger a Maven build and test on CI, https://github.com/pan3793/spark/actions/runs/11379852474, let's wait for the results. |
This reverts commit 41d365e.
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.
+1, LGTM. Thank you, @pan3793 and @LuciferYang .
Merged to master for Apache Spark 4.0.0 on February 2025.
### What changes were proposed in this pull request? Remove unused vanilla hadoop dependency(and transitive deps) management, i.e. `hadoop-client`, `xerces:xercesImpl`, and inline deps defined in `hadoop3` because it's the only supported hadoop profile. ### Why are the changes needed? Simplify pom.xml. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass CI and verified runtime jars are not affected by running`dev/test-dependencies.sh`. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#48491 from pan3793/SPARK-49988. Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
Remove unused vanilla hadoop dependency(and transitive deps) management, i.e.
hadoop-client
,xerces:xercesImpl
, and inline deps defined inhadoop3
because it's the only supported hadoop profile.Why are the changes needed?
Simplify pom.xml.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass CI and verified runtime jars are not affected by running
dev/test-dependencies.sh
.Was this patch authored or co-authored using generative AI tooling?
No.