Skip to content
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

[SPARK-49988][BUILD] Remove unused Hadoop dependency management #48491

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pan3793
Copy link
Member

@pan3793 pan3793 commented Oct 16, 2024

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 runningdev/test-dependencies.sh.

Was this patch authored or co-authored using generative AI tooling?

No.

@pan3793
Copy link
Member Author

pan3793 commented Oct 16, 2024

cc @dongjoon-hyun @LuciferYang

-->
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
Copy link
Contributor

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?

Copy link
Contributor

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 ?

Copy link
Member Author

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.

Copy link
Member Author

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

Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Contributor

@LuciferYang LuciferYang left a 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)

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a 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 ?

@pan3793
Copy link
Member Author

pan3793 commented Oct 17, 2024

@dongjoon-hyun I tested the maven build, run dev/test-dependencies.sh to ensure that runtime deps are affected, and just run UT of a few modules(sts, yarn) using maven locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants