[ 
https://issues.apache.org/jira/browse/HBASE-20495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16454568#comment-16454568
 ] 

Josh Elser commented on HBASE-20495:
------------------------------------

{quote}{quote}do we need the hadoop-hdfs:test dependency at all?
{quote}
If hadoop-hdfs:test is excluded, you would get the following:
{quote}
Ah, I was thinking that we had a better dependency for that now. I guess we 
have to switch over to the new minicluster jars to get that working.
{quote}Yes. This fix is needed - same exception was observed running against 
3.1.0
{quote}
Ok, great.
{quote}Which module is the above observed ?
 There is only one occurrence of jersey-server jar in hbase-rest module 
dependency tree.
{quote}
{noformat}
[INFO] -------------------< org.apache.hbase:hbase-thrift >--------------------
[INFO] Building Apache HBase - Thrift 2.0.0                             [23/39]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.0.1:tree (default-cli) @ hbase-thrift ---
[INFO] org.apache.hbase:hbase-thrift:jar:2.0.0
[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}
This was from HEAD of branch-2.0 using {{mvn dependency:tree 
-Dhadoop.profile=3.0}}

> 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)

Reply via email to