[SPARK-37264][BUILD] Exclude hadoop-client-api transitive dependency from orc-core#34541
[SPARK-37264][BUILD] Exclude hadoop-client-api transitive dependency from orc-core#34541sarutak wants to merge 3 commits intoapache:masterfrom
hadoop-client-api transitive dependency from orc-core#34541Conversation
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Shall we cut the transitive dependency explicitly instead?
|
I guess it only fails at |
If we can do it, it's better. The dependency doesn't matter the usage of ORC in Spark right?
Yes. But |
|
Yes, the dependency doesn't matter. ORC has it because Hadoop 2.7 doesn't work on Java 17. |
Ah, right. Let's cut the transitive dependency. |
|
Since we already cut the Hadoop from ORC, I'll add the missing part additionally there. |
|
Since you are already started, could you revise this PR like the following? This is the diff. With the above change, I confirmed that the dependency is the same with the master branch with Java 17. |
|
@dongjoon-hyun Thank you. Yeah, I'm just doing it. |
|
Thank you for the updates. Please revise the PR title and description accordingly. |
|
BTW, @sarutak . ORC has that dependency always on Java 17. It's irrelevant to Spark's
|
|
@dongjoon-hyun Oh, I see. Thank you. |
|
If you don't mind, may I revise the PR title and description a little? |
|
I don't mind. It might be better. Thank you. |
hadoop-client-api transitive dependency from orc-core
dongjoon-hyun
left a comment
There was a problem hiding this comment.
+1, LGTM. I verified manually too.
|
I finished revision and approved. You can revise more if you want. You can merge this because the PR builder is not running Java 17 and I verified together with you. |
hadoop-client-api transitive dependency from orc-corehadoop-client-api transitive dependency from orc-core
|
I see. Merging to |
|
Thank YOU, @sarutak ! |
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Test build #145047 has finished for PR 34541 at commit
|
|
Test build #145049 has finished for PR 34541 at commit
|
What changes were proposed in this pull request?
Like
hadoop-commonandhadoop-hdfs, this PR proposes to excludehadoop-client-apitransitive dependency fromorc-core.Why are the changes needed?
Since Apache Hadoop 2.7 doesn't work on Java 17, Apache ORC has a dependency on Hadoop 3.3.1.
This causes
test-dependencies.shfailure on Java 17 onhadoop-2.7profile. As a result,run-tests.pyalso fails.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Confirmed that
test-dependencyies.shworks on Java 17 correctly because the transitive dependency is cut.