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

hbase-shaded-client for Hbase 2.x does not include all the classes it needs at runtime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Client
    • None

    Description

      When running a simple Job to read data from HBase 2 I got this exception, so it seems not all needed classes are included in `hbase-shaded-client`

      java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/shaded/org/mortbay/jetty/nio/SelectChannelConnector
      at com.example.hbase.HBaseIOTest.beforeClass(HBaseIOTest.java:79)
      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.shaded.org.mortbay.jetty.nio.SelectChannelConnector
      at com.example.hbase.HBaseIOTest.beforeClass(HBaseIOTest.java:79

      If I replace the dependency with just `hbase-client` everything works correctly.
      I created an external repo to test this in case someone may want to take a look.

      https://github.com/iemejia/hbase-shaded-server-test/blob/f644a7b9850d416f19093c717b73dd8c1048c553/pom.xml#L55

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              iemejia Ismaël Mejía
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: