码迷,mamicode.com
首页 > 其他好文 > 详细

ClusterId read in ZooKeeper is null 处理

时间:2019-11-17 01:14:39      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:keep   print   str   eps   evel   src   level   for   val   

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 处理

标签:keep   print   str   eps   evel   src   level   for   val   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!