Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20495

REST unit test fails with NoClassDefFoundError against hadoop3

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None

    Description

      The following was first observed in the test output of rest.TestDeleteRow against hadoop3:

      java.lang.NoClassDefFoundError: com/sun/jersey/core/spi/factory/AbstractRuntimeDelegate
      Caused by: java.lang.ClassNotFoundException: com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate
      

      This was due to the following transitive dependency on jersey 1.19:

      [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
      

      Attachments

        1. 20495.v1.txt
          0.6 kB
          Ted Yu

        Issue Links

          Activity

            People

              yuzhihong@gmail.com Ted Yu
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: