[SPARK-27179][BUILD] Exclude javax.ws.rs:jsr311-api from hadoop-client#24114
[SPARK-27179][BUILD] Exclude javax.ws.rs:jsr311-api from hadoop-client#24114wangyum wants to merge 1 commit intoapache:masterfrom wangyum:SPARK-27179
Conversation
|
Test build #103562 has finished for PR 24114 at commit
|
|
retest this please |
|
We can build it. But it won't succeed because the built-in Hive is still 1.2.1. |
srowen
left a comment
There was a problem hiding this comment.
The JSR 311 jar would be the old version of the same API right? this ought to be OK.
|
jsr311-api - This is the official spec jar for the JAX-RS 1.x line. https://stackoverflow.com/questions/25264669/what-is-the-difference-between-rs-api-and-jsr311-api |
|
Test build #103575 has finished for PR 24114 at commit
|
|
retest this please |
|
Test build #103583 has finished for PR 24114 at commit
|
|
This should be fine as these are API classes and 2.0 should be a superset of 1.0 anyway |
|
Merged to master |
## What changes were proposed in this pull request? Since [YARN-7113](https://issues.apache.org/jira/browse/YARN-7113)(Hadoop-3.1.0), `hadoop-client` add `javax.ws.rs:jsr311-api` to its dependency. This conflict with [javax.ws.rs-api-2.0.1.jar](https://github.com/apache/spark/blob/f26a1f3d3766207595af6cb26d62d54218f5ac1d/dev/deps/spark-deps-hadoop-3.1#L105). ```shell build/sbt "core/testOnly *.UISeleniumSuite *.HistoryServerSuite" -Phadoop-3.2 ... [info] <pre> Server Error</pre></p><h3>Caused by:</h3><pre>java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map; ... ``` This pr exclude `javax.ws.rs:jsr311-api` from hadoop-client. ## How was this patch tested? manual tests: ```shell build/sbt "core/testOnly *.UISeleniumSuite *.HistoryServerSuite" -Phadoop-3.2 ``` Closes apache#24114 from wangyum/SPARK-27179. Authored-by: Yuming Wang <yumwang@ebay.com> Signed-off-by: Sean Owen <sean.owen@databricks.com>
What changes were proposed in this pull request?
Since YARN-7113(Hadoop-3.1.0),
hadoop-clientaddjavax.ws.rs:jsr311-apito its dependency. This conflict with javax.ws.rs-api-2.0.1.jar.This pr exclude
javax.ws.rs:jsr311-apifrom hadoop-client.How was this patch tested?
manual tests:
build/sbt "core/testOnly *.UISeleniumSuite *.HistoryServerSuite" -Phadoop-3.2