HadooP HBase Java Programming issue : The node /hbase is not in ZooKeeper

I have attached a screenshot. Trying to do HBase Bulk data load, facing this error.

org.apache.hadoop.hbase.MasterNotRunningException: org.a
pache.hadoop.hbase.MasterNotRunningException: The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in ‘zo
okeeper.znode.parent’. There could be a mismatch with the one configured in the master.

Is it happening in CloudxLab?
I just checked the HBase Master is running and Hbase is configured to use the zk node /hbase-unsecure not /hbase.

In case, it is your own setup, look into hbase-site.xml and change the /hbase to /hbase-unsecure (this should be in zookeeper - you can check using zookeeper-client).

Hello,
Thank you for responding.
The error is still coming. Is it anything I need to mention in code? I am doing it in cloudxlab. I don’t have Hadoop server in my system.

What should I do?

Hello, still the same problem. Can you tell me how to fix it?

Hello,

Can you tell me the location of “hbase-site.xml”?

I fixed the issue. I just added below line and it worked. Thank you.

configuration.addResource("/etc/hbase/conf/hbase-site.xml");

1 Like