首页 > 其他 > 详细

ClusterId read in ZooKeeper is null 处理

时间:2019-11-17 01:53:00      阅读:727      评论:0      收藏:0      [点我收藏+]

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:

  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”);

ClusterId read in ZooKeeper is null 处理

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!