-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-30051][BUILD] Clean up hadoop-3.2 dependency #26742
Conversation
Retest this please. |
Test build #114744 has finished for PR 26742 at commit
|
Test build #114745 has finished for PR 26742 at commit
|
Hi, @srowen and @HyukjinKwon . |
<exclusion> | ||
<groupId>org.eclipse.jetty</groupId> | ||
<artifactId>jetty-webapp</artifactId> | ||
</exclusion> |
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 hadoop-3.2
-specific exclusion starts from https://github.com/apache/spark/pull/26742/files#diff-600376dffeb79835ede4a0b285078036R1034 .
What's the logic here -- it's not actually needed at compile time because? |
|
If I misunderstand something, I'll close this PR~ Please let me know. |
I may also be missing something, but jetty is still used throughout the code. This seems to remove it entirely from the distribution by marking it |
Before this PR, I tested with
https://github.com/eclipse/jetty.project/tree/jetty-9.4.x/jetty-webapp AFAIK, Apache Spark don't use |
OK yeah I agree the webapp artifact isn't used directly. It isn't in the other deps files either. When you say embedded, you mean shaded? Yes it is. I guess I'm confused why we don't see the artifact in the deps list anyway, even if shaded, or why we only see a few still in the Hadoop 2.x builds like jetty-util, but, maybe I just don't recall how it works. OK well it looks consistent at least. |
Thank you for review. Merged to master. |
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.
Looks fine to me too
### What changes were proposed in this pull request? This PR aims to cut `org.eclipse.jetty:jetty-webapp`and `org.eclipse.jetty:jetty-xml` transitive dependency from `hadoop-common`. ### Why are the changes needed? This will simplify our dependency management by the removal of unused dependencies. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Pass the GitHub Action with all combinations and the Jenkins UT with (Hadoop-3.2). Closes apache#26742 from dongjoon-hyun/SPARK-30051. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
This PR aims to cut `org.eclipse.jetty:jetty-webapp`and `org.eclipse.jetty:jetty-xml` transitive dependency from `hadoop-common`. This will simplify our dependency management by the removal of unused dependencies. No. Pass the GitHub Action with all combinations and the Jenkins UT with (Hadoop-3.2). Closes apache#26742 from dongjoon-hyun/SPARK-30051. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
This PR aims to cut
org.eclipse.jetty:jetty-webapp
andorg.eclipse.jetty:jetty-xml
transitive dependency fromhadoop-common
.Why are the changes needed?
This will simplify our dependency management by the removal of unused dependencies.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass the GitHub Action with all combinations and the Jenkins UT with (Hadoop-3.2).