You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Oleg Muravskiy (Jira)" <ji...@apache.org> on 2021/05/31 15:27:00 UTC

[jira] [Commented] (HBASE-22889) hbase-shaded-client for Hbase 2.x does not include all the classes it needs at runtime

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

Oleg Muravskiy commented on HBASE-22889:
----------------------------------------

The same is true for shaded `org.apache.hadoop.hbase.shaded.org.codehaus.jackson.*`.
hbase-shaded-client uses `org.apache.hadoop.conf.Configuration`, which imports two classes from `org.apache.hadoop.hbase.shaded.org.codehaus.jackson` package, but this package is not present in hbase-shaded-client artefact.

I would also raise the priority of this issue, as currently it isn't possible to only depend on hbase-shaded-client at runtime.

> 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
>            Priority: Minor
>
> 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.4#803005)