[
https://issues.apache.org/jira/browse/HADOOP-15984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17817023#comment-17817023
]
Shilun Fan commented on HADOOP-15984:
-------------------------------------
[~iwasakims] [~fanningpj] Thank you for the comments! I encountered some issues
while debugging locally because jsr and rs-api define some classes with similar
names but not identical content, resulting in conflicts. Indeed, Jersey1 and
Jersey2 cannot coexist.
{code:java}
// jersey1 need jsr311
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<version>1.1.1</version>
</dependency>
// jersey2 need rs-api 2.x
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.1.1</version>
</dependency> {code}
class loading resolution is one way to solve it, but it's quite challenging. We
can opt for a simpler solution, such as hadoop-thirdparty-jersey2, using shade
to rename the packages of the dependency jars. This approach is much simpler.
cc: [[email protected]]
> Update jersey from 1.19 to 2.x
> ------------------------------
>
> Key: HADOOP-15984
> URL: https://issues.apache.org/jira/browse/HADOOP-15984
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Akira Ajisaka
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> jersey-json 1.19 depends on Jackson 1.9.2. Let's upgrade.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]