欢迎投稿

今日深度:

error: KeeperErrorCode = NoNode for /hbase/master,

error: KeeperErrorCode = NoNode for /hbase/master,


错误2:

搭建完集群之后,在hbase shell中查看表,出现error: KeeperErrorCode = NoNode for /hbase/master

查看日志,是因为zookeeper启动后又自动关闭了。为什么会出现这个问题呢?是因为原来是因为zoo.cfg里的data目录是配置在/tmp下的,这目录是会定时清空的,因此,需要更改该目录,我的设置为/usr/local/work/zkdata。重新启动zookeeper。

若问题还为解决,则可能是hbase中的zookeeper设置不成功。编辑hbase-2.1.0/conf/hbase-site.xml,加入配置:

<property>
     <name>zookeeper.znode.parent</name>
     <value>/hbase/master</value>
 </property>

因为远程hbase配置默认为/hbase路径。

参考链接:

http://mail-archives.apache.org/mod_mbox/hbase-user/201101.mbox/%3CAANLkTikD=FmzvyBZjPg3e02KwTgAOVC2OBFSB5R9b7CD@mail.gmail.com%3E

 

 

www.htsjk.Com true http://www.htsjk.com/hbase/34243.html NewsArticle error: KeeperErrorCode = NoNode for /hbase/master, 错误2: 搭建完集群之后,在hbase shell中查看表,出现error: KeeperErrorCode = NoNode for /hbase/master 查看日志,是因为zookeeper启动后又自动关闭了。为什...
相关文章
    暂无相关文章
评论暂时关闭