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

hbase-rest jar does not work with hbase-shaded-client with protobuf encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.6.0, 2.4.17, 2.7.0, 2.5.8
    • None
    • REST
    • None

    Description

      When trying to decode a protobuf encoded CellSet, I get

      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)
      
      

      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

      export CLASSPATH=`hbase --internal-classpath classpath`:<a few extra jars>
      

      command to set up the classpath for the client.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stoty Istvan Toth
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: