Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hbase exception during db connection pool initialization

Hbase exception during db connection pool initialization

Expert Contributor

I have created a storm topology which writes to hbase and I am using 'JdbcInsertBolt' to do the same.

I am using storm 1.0.1.2.5

Attaching my pom.xml

But the bolt is throwing below exception :

Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.hbase.protobuf.ProtobufUtil at org.apache.hadoop.hbase.ClusterId.parseFrom(ClusterId.java:64) ~[stormjar.jar:?] at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:75) ~[stormjar.jar:?] at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(Zo

oKeeperRegistry.java:105) ~[stormjar.jar:?] at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:880) ~[stormjar.jar:?] at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:636) ~[stormjar.jar:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_67] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_67] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_67] at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_67] at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238) ~[stormjar.jar:?] at org.apache.hadoop.hbase.client.ConnectionManager.createConnection(ConnectionManager.java:421) ~[stormjar.jar:?]

1 REPLY 1
Highlighted

Re: Hbase exception during db connection pool initialization

Super Collaborator

ProtobufUtil is in hbase-client module.

Please make sure hbase-client jar is on the classpath