[
https://issues.apache.org/jira/browse/HBASE-20495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16454477#comment-16454477
]
Josh Elser commented on HBASE-20495:
------------------------------------
Do we need the same change with Hadoop 3.0.2 and/or 3.1.0? I recall seeing at
least one issue in dependency management that Hadoop had fixed over 3.0.0.
Better yet, do we need the hadoop-hdfs:test dependency at all? That is kind of
a smell to me outright.
{noformat}
[INFO] +- org.apache.hadoop:hadoop-minicluster:jar:3.0.0:compile
[INFO] | +- org.apache.hadoop:hadoop-common:test-jar:tests:3.0.0:compile
[INFO] | | +- com.sun.jersey:jersey-servlet:jar:1.19:compile
[INFO] | | +- com.sun.jersey:jersey-json:jar:1.19:compile
[INFO] | | | +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
[INFO] | | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.2:compile
[INFO] | | | \- org.codehaus.jackson:jackson-xc:jar:1.9.2:compile
[INFO] | | \- com.sun.jersey:jersey-server:jar:1.19:compile{noformat}
I also see another place where this jersey-server jar gets on the
dependencyTree. Should it be excluded there as well?
> REST unit test fails with NoClassDefFoundError against hadoop3
> --------------------------------------------------------------
>
> Key: HBASE-20495
> URL: https://issues.apache.org/jira/browse/HBASE-20495
> Project: HBase
> Issue Type: Test
> Reporter: Ted Yu
> Assignee: Ted Yu
> Priority: Major
> Attachments: 20495.v1.txt
>
>
> The following was first observed in the test output of rest.TestDeleteRow
> against hadoop3:
> {code}
> java.lang.NoClassDefFoundError:
> com/sun/jersey/core/spi/factory/AbstractRuntimeDelegate
> Caused by: java.lang.ClassNotFoundException:
> com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate
> {code}
> This was due to the following transitive dependency on jersey 1.19:
> {code}
> [INFO] +- org.apache.hbase:hbase-testing-util:jar:2.0.0.3.0.0.0-SNAPSHOT:test
> [INFO] | +-
> org.apache.hbase:hbase-zookeeper:test-jar:tests:2.0.0.3.0.0.0-SNAPSHOT:test
> [INFO] | +-
> org.apache.hbase:hbase-hadoop-compat:test-jar:tests:2.0.0.3.0.0.0-SNAPSHOT:test
> [INFO] | +-
> org.apache.hbase:hbase-hadoop2-compat:test-jar:tests:2.0.0.3.0.0.0-SNAPSHOT:test
> [INFO] | +-
> org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:3.0.0:compile
> [INFO] | | \-
> org.apache.hadoop:hadoop-mapreduce-client-common:jar:3.0.0:compile
> [INFO] | +- org.apache.hadoop:hadoop-hdfs:test-jar:tests:3.0.0:test
> [INFO] | | \- com.sun.jersey:jersey-server:jar:1.19:compile
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)