ClusterId read in ZooKeeper is null 处理
ClusterId read in ZooKeeper is null.
Re-running the program after fixing issue 1 will result in the following error in the log file (Oddly logged at INFO level)
现象1: baseZNode = /hbase
现象2:ClusterId read in ZooKeeper is nul
检查Nodes
- ./zkCli.sh -server node01:2181,node02:2181,node03:2181
- ls /
解决办法
The HBase clients will discover the running HBase cluster using the following two properties:
- hbase.zookeeper.quorum: is used to connect to the zookeeper cluster
- zookeeper.znode.parent. tells which znode keeps the data (and address for HMaster) for the cluster
The value of zookeeper.znode.parent in hbase-1.2.0-cdh5.14.2/conf/hbase-site.xml is specified as /HBase (see below) which is correct but for some reason (still trying to figure this out), the value being printed is /hbase (现象1).
So currently I’ve overridden this programatically in the client program by adding the following line to the program
conf.set(“zookeeper.znode.parent”, “/HBase”);