[
https://issues.apache.org/jira/browse/HBASE-28526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851915#comment-17851915
]
Istvan Toth edited comment on HBASE-28526 at 6/4/24 7:04 AM:
-------------------------------------------------------------
For reference, I needed these additional JARs on the classpath (apart from the
`hbase classpath` and hbase-rest)
{noformat}
hbase-shaded-jackson-jaxrs-json-provider-4.1.7.jar
jackson-annotations-2.17.0.jar
javax.activation-1.2.0.jar
hbase-shaded-jersey-4.1.7.jar
jackson-core-2.17.0.jar
jaxb-api-2.3.1.jar
log4j-api-2.17.2.jar
jackson-databind-2.17.0.jar
jaxb-impl-2.2.3-1.jar
log4j-core-2.17.2.jar
jackson-module-jaxb-annotations-2.17.0.jar
log4j-1.2-api-2.17.2.jar
log4j-slf4j-impl-2.17.2.jar
jakarta.activation-api-1.2.1.jar
protobuf-java-2.5.0.jar
{noformat}
was (Author: stoty):
For reference, I needed these additional JARs on the classpath (apart from the
`hbase classpath` and hbase-rest)
{noformat}
hbase-shaded-jackson-jaxrs-json-provider-4.1.7.jar
jackson-annotations-2.17.0.jar
javax.activation-1.2.0.jar
hbase-shaded-jersey-4.1.7.jar
jackson-core-2.17.0.jar
jaxb-api-2.3.1.jar
log4j-api-2.17.2.jar
httpclient5-5.2.3.jar
jackson-databind-2.17.0.jar
jaxb-impl-2.2.3-1.jar
log4j-core-2.17.2.jar
jackson-module-jaxb-annotations-2.17.0.jar
log4j-1.2-api-2.17.2.jar
log4j-slf4j-impl-2.17.2.jar
jakarta.activation-api-1.2.1.jar
protobuf-java-2.5.0.jar
{noformat}
> hbase-rest client shading conflict with hbase-shaded-client in HBase 2.x
> ------------------------------------------------------------------------
>
> Key: HBASE-28526
> URL: https://issues.apache.org/jira/browse/HBASE-28526
> Project: HBase
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.6.0, 2.4.17, 2.7.0, 2.5.8
> Reporter: Istvan Toth
> Assignee: Istvan Toth
> Priority: Major
> Labels: pull-request-available
>
> When trying to decode a protobuf encoded CellSet, I get
> {noformat}
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.hadoop.hbase.protobuf.ProtobufUtil.mergeFrom(Lcom/google/protobuf/Message$Builder;[B)V
> at
> org.apache.hadoop.hbase.rest.model.CellSetModel.getObjectFromMessage(CellSetModel.java:129)
> at RestClientExample.getMulti(RestClientExample.java:191)
> at RestClientExample.start(RestClientExample.java:138)
> at RestClientExample.main(RestClientExample.java:124)
> {noformat}
> Seems to be caused by relocating protobuf 2.5 in hbase-shaded-client.
> It works fine with the unrelcoated client i.e. when using the
> {noformat}
> export CLASSPATH=`hbase --internal-classpath classpath`:<a few extra jars>
> {noformat}
> command to set up the classpath for the client.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)