hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hef <hef.onl...@gmail.com>
Subject Incompatible ProtocolBuffers version for HBase-client 1.0
Date Fri, 17 Mar 2017 04:36:40 GMT
Hi group,
I have a problem using ProtocolBuffers 3 in my application with CDH5.6
HBase 1.0.

When creating BufferedMutator and flush data into HBase, it shows an error
as below:

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.hadoop.hbase.util.ByteStringer
at
org.apache.hadoop.hbase.protobuf.RequestConverter.buildRegionSpecifier(RequestConverter.java:995)
at
org.apache.hadoop.hbase.protobuf.RequestConverter.buildGetRowOrBeforeRequest(RequestConverter.java:138)
at
org.apache.hadoop.hbase.protobuf.ProtobufUtil.getRowOrBefore(ProtobufUtil.java:1579)
at
org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegionInMeta(ConnectionManager.java:1293)
at
org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1125)
at org.apache.hadoop.hbase.client.AsyncProcess.submit(AsyncProcess.java:369)
at org.apache.hadoop.hbase.client.AsyncProcess.submit(AsyncProcess.java:320)
at
org.apache.hadoop.hbase.client.BufferedMutatorImpl.backgroundFlushCommits(BufferedMutatorImpl.java:198)
at
org.apache.hadoop.hbase.client.BufferedMutatorImpl.doMutate(BufferedMutatorImpl.java:141)
at
org.apache.hadoop.hbase.client.BufferedMutatorImpl.mutate(BufferedMutatorImpl.java:105)

It looks like HBase is using ProtocolBuffers2.5, which cause the bytecode
incompatible.

Does anyone has experience of resolving this problem? Or I have to switch
back to protocol 2.5.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message