ClusterId read in ZooKeeper is null 处理

时间:2019-11-17 01:53:00   收藏:0   阅读:728

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

 技术分享图片

 

 

解决办法

The HBase clients will discover the running HBase cluster using the following two properties:

  1. hbase.zookeeper.quorum: is used to connect to the zookeeper cluster
  2. 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”);

原文:https://www.cnblogs.com/shareforever-999/p/11874796.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!