Skip to content

[SPARK-33212][FOLLOW-UP][BUILD] Uses provided properties for Hadoop client dependencies in root pom #31467

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

Closed
wants to merge 1 commit into from

Conversation

HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR is a followup of #30701. It uses properties of hadoop-client-api.artifact, hadoop-client-runtime.artifact and hadoop-client-minicluster.artifact explicitly to set the dependencies and versions.

Otherwise, it is logically incorrect. For example, if you build with Hadoop 2, this dependency becomes hadoop-client-api:2.7.4 internally, which does not exist in Hadoop 2 (https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client-api).

Why are the changes needed?

  • To fix the logical incorrectness.
  • It fixes a potential issue: this actually caused an issue when generate-sources plugin is used together with Hadoop 2 by default, which attempts to pull 2.7.4 of hadoop-client-api, hadoop-client-runtime and hadoop-client-minicluster for whatever reason.

Does this PR introduce any user-facing change?

No for users and dev. It's more a cleanup.

How was this patch tested?

Manually checked the dependencies are correctly placed.

@HyukjinKwon
Copy link
Member Author

cc @sunchao would you mind taking a quick look please?

Copy link
Member

@sunchao sunchao left a comment

Choose a reason for hiding this comment

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

LGTM - sorry for missing this in the original PR.

@github-actions github-actions bot added the BUILD label Feb 4, 2021
@HyukjinKwon
Copy link
Member Author

Nah, it's just a cleanup. Thanks for taking a look 😄

@SparkQA
Copy link

SparkQA commented Feb 4, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39442/

@SparkQA
Copy link

SparkQA commented Feb 4, 2021

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39442/

@SparkQA
Copy link

SparkQA commented Feb 4, 2021

Test build #134855 has finished for PR 31467 at commit 03eec64.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member Author

Merged to master.

@dongjoon-hyun
Copy link
Member

Thank you, @HyukjinKwon and @sunchao !

@HyukjinKwon HyukjinKwon deleted the SPARK-33212 branch January 4, 2022 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants