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

Istvan Toth commented on HBASE-28526:
-------------------------------------

The best solution would be splitting the hbase-rest module in two, a client and 
server component, and including the client part hbase-shaded-client.

Switching to the shaded protobuf should also help.

> hbase-rest jar does not work with hbase-shaded-client with protobuf encoding
> ----------------------------------------------------------------------------
>
>                 Key: HBASE-28526
>                 URL: https://issues.apache.org/jira/browse/HBASE-28526
>             Project: HBase
>          Issue Type: Bug
>          Components: REST
>            Reporter: Istvan Toth
>            Priority: Major
>
> 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)

Reply via email to