Connect to HBase in labs.itversity, using Java API


Did anyone connect to HBase in using Java API. I gave following parameters in the code…
conf.set(“hbase.zookeeper.quorum”, “,,”);
conf.set(“”, “2181”);

I get the error saying…
Caused by: java.lang.NullPointerException at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.getMetaReplicaNodes(

I found something like this. Not sure if this correct. Can we fix this ?
root cause:
attempted to contact Zookeeper to get Meta location but could not retrieve required info. This is a known issue described in HBASE-16732

In this instance of issue, restarting zookeeper fixed the issue as it reinitialized hbase znodes.