Uh oh!
There was an error while loading. Please reload this page.
[SPARK-35959][BUILD][test-maven][test-hadoop3.2][test-java11] Add a new Maven profile "no-shaded-hadoop-client" for Hadoop versions older than 3.2.2/3.3.1 - #33160
Conversation
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Jul 1, 2021
Kubernetes integration test starting |
SparkQA
commented
Jul 1, 2021
Kubernetes integration test status success |
SparkQA
commented
Jul 1, 2021
Test build #140469 has finished for PR 33160 at commit
|
SparkQA
commented
Jul 1, 2021
Kubernetes integration test unable to build dist. exiting with code: 1 |
SparkQA
commented
Jul 1, 2021
Test build #140487 has finished for PR 33160 at commit
|
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Hi, @sunchao .
To verify via CI, could you make the profile active by default? After testing, we should remove it.
dongjoon-hyun
commented
Jul 1, 2021
FYI, if you enable it by default, the dependency files are required to be updated accordingly. |
sunchao
commented
Jul 1, 2021
Thanks @dongjoon-hyun . Will do. |
SparkQA
commented
Jul 1, 2021
Test build #140531 has finished for PR 33160 at commit
|
SparkQA
commented
Jul 1, 2021
Kubernetes integration test starting |
SparkQA
commented
Jul 1, 2021
Kubernetes integration test status success |
SparkQA
commented
Jul 1, 2021
Kubernetes integration test unable to build dist. exiting with code: 1 |
For Hadoop 2 build, I noticed that GitHub Action job used For the other part, it looks good to me. After one hour, if GitHub Action passed, let's revert |
SparkQA
commented
Jul 1, 2021
Test build #140537 has finished for PR 33160 at commit
|
sunchao
commented
Jul 1, 2021
Hmm for some reason it is still using Hadoop 3.3.1 classes which is only compatible with jetty 9.4+. Let me check why it happens. |
dongjoon-hyun
commented
Jul 1, 2021
Let me check the PR builder. |
dongjoon-hyun
commented
Jul 1, 2021
So, |
sunchao
commented
Jul 1, 2021
Yeah, but somehow it references Hadoop 3.3.1 class like |
dongjoon-hyun
commented
Jul 2, 2021
It seems to be a Spark bug which works only at maven and not on sbt. |
dongjoon-hyun
commented
Jul 2, 2021
In this case, we used to use |
dongjoon-hyun
commented
Jul 2, 2021
Let me try. |
dongjoon-hyun
commented
Jul 2, 2021
Retest this please |
sunchao
commented
Jul 2, 2021
@dongjoon-hyun ahh I think you are right! seems sbt doesn't parse the |
SparkQA
commented
Jul 2, 2021
Test build #140560 has finished for PR 33160 at commit
|
SparkQA
commented
Jul 2, 2021
Kubernetes integration test status failure |
SparkQA
commented
Jul 6, 2021
Kubernetes integration test starting |
SparkQA
commented
Jul 6, 2021
Kubernetes integration test status failure |
SparkQA
commented
Jul 6, 2021
Test build #140714 has finished for PR 33160 at commit
|
SparkQA
commented
Jul 6, 2021
Kubernetes integration test starting |
SparkQA
commented
Jul 6, 2021
Test build #140721 has finished for PR 33160 at commit
|
SparkQA
commented
Jul 6, 2021
Kubernetes integration test status failure |
sunchao
commented
Jul 7, 2021
It seems Spark can't use non-shaded Hadoop 3.3.1 client as it is because of |
SparkQA
commented
Aug 12, 2021
Kubernetes integration test unable to build dist. exiting with code: 1 |
SparkQA
commented
Aug 12, 2021
Test build #142369 has finished for PR 33160 at commit
|
steveloughran
commented
Aug 19, 2021
could move hadoop 3.3.2 to the same jetty version; if we get that out then things will briefly be in sync |
sunchao
commented
Aug 19, 2021
@steveloughran yes we can, this is only an issue when Spark uses the non-shaded client though so I think it's OK, since it's better to just use the shaded client. |
SparkQA
commented
Sep 7, 2021
Kubernetes integration test unable to build dist. exiting with code: 1 |
steveloughran
commented
Sep 9, 2021
you got any plans to update that hadoop jetty version alongside this? |
sunchao
commented
Sep 9, 2021
@steveloughran you mean upgrade jetty version in Hadoop? yea I can check, but anyways Spark is not blocked by the jetty thing. |
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
What changes were proposed in this pull request?
Add a new Maven profile
no-shaded-hadoop-clientthat, when activated, switches to non-shaded Hadoop client (e.g.,hadoop-client,hadoop-yarn-client, etc).Why are the changes needed?
Currently Spark uses Hadoop shaded client by default. However, if Spark users want to build Spark with older version of Hadoop, such as 3.1.x, the shaded client cannot be used as it currently it only support Hadoop 3.2.2+ and 3.3.1+). Therefore, this proposes to offer a new Maven profile "no-shaded-hadoop-client" for this use case.
Does this PR introduce any user-facing change?
Yes, now users can choose to build Apache Spark with non-shaded Hadoop client, e.g.:
How was this patch tested?
Existing tests.