You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ismaël Mejía (Jira)" <ji...@apache.org> on 2019/08/21 15:54:00 UTC
[jira] [Created] (HBASE-22889) hbase-shaded-client for Hbase 2.x
does not include all the classes it needs at runtime
Ismaël Mejía created HBASE-22889:
------------------------------------
Summary: hbase-shaded-client for Hbase 2.x does not include all the classes it needs at runtime
Key: HBASE-22889
URL: https://issues.apache.org/jira/browse/HBASE-22889
Project: HBase
Issue Type: Bug
Components: Client
Reporter: Ismaël Mejía
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`
{quote}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{quote}
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
--
This message was sent by Atlassian Jira
(v8.3.2#803003)