HBase 错误:zookeeper.znode.parent 不匹配 [英] HBase Error : zookeeper.znode.parent mismatch
问题描述
我正在尝试学习 Hadoop,并且我已经阅读了 Hadoop 权威指南中的 HBase 部分.我尝试启动 HBase 并出错.有人能给我一步一步的指导吗?
opel@ubuntu:~$ zkServer.sh start默认启用 JMX使用配置:/home/opel/zookeeper-3.4.6/bin/../conf/zoo.cfg启动zookeeper ... STARTEDopel@ubuntu:~$ start-hbase.sh启动 master,登录到/home/opel/hbase-0.94.20/logs/hbase-opel-master-ubuntu.outopel@ubuntu:~$ hbase shellHBase 外壳;输入'帮助<返回>'支持的命令列表.输入退出<返回>"离开 HBase Shell版本 0.94.20,r09c60d770f2869ca315910ba0f9a5ee9797b1edc,2014 年 5 月 23 日星期五 22:00:41 PDThbase(main):001:0>地位14/06/02 22:40:44 错误 client.HConnectionManager$HConnectionImplementation:检查zookeeper.znode.parent"中配置的值.可能与主站中配置的不匹配.14/06/02 22:40:45 错误 client.HConnectionManager$HConnectionImplementation:检查zookeeper.znode.parent"中配置的值.可能与主站中配置的不匹配.14/06/02 22:40:47 错误 client.HConnectionManager$HConnectionImplementation:检查zookeeper.znode.parent"中配置的值.可能与主站中配置的不匹配.14/06/02 22:40:49 错误 client.HConnectionManager$HConnectionImplementation:检查zookeeper.znode.parent"中配置的值.可能与主站中配置的不匹配.14/06/02 22:40:51 错误 client.HConnectionManager$HConnectionImplementation:检查zookeeper.znode.parent"中配置的值.可能与主站中配置的不匹配.14/06/02 22:40:55 错误 client.HConnectionManager$HConnectionImplementation:检查zookeeper.znode.parent"中配置的值.可能与主站中配置的不匹配.14/06/02 22:40:59 错误 client.HConnectionManager$HConnectionImplementation:检查zookeeper.znode.parent"中配置的值.可能与主站中配置的不匹配.错误:org.apache.hadoop.hbase.MasterNotRunningException:重试 7 次以下是此命令的一些帮助:显示集群状态.可以是摘要"、简单"或详细".这默认为摘要".例子:数据库>地位数据库>状态简单"数据库>状态摘要"数据库>状态详细"
有什么问题吗?
我遇到了同样的问题.对我来说,解决方案是将以下属性添加到 hbase-site.xml
(对我来说,它可以在 /usr/lib/hbase/conf
目录下找到):
但这仅适用于独立模式.使用外部ZooKeeper时,我仍然不知道如何解决这个问题.
i am trying to learn Hadoop and i'v reached HBase section in Hadoop Definitive Guide. i tried to start HBase and got error. Could someone give me step-by-step guide?
opel@ubuntu:~$ zkServer.sh start
JMX enabled by default
Using config: /home/opel/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
opel@ubuntu:~$ start-hbase.sh
starting master, logging to /home/opel/hbase-0.94.20/logs/hbase-opel-master-ubuntu.out
opel@ubuntu:~$ hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.94.20, r09c60d770f2869ca315910ba0f9a5ee9797b1edc, Fri May 23 22:00:41 PDT 2014
hbase(main):001:0> status
14/06/02 22:40:44 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:45 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:47 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:49 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:51 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:55 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
14/06/02 22:40:59 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.
ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times
Here is some help for this command:
Show cluster status. Can be 'summary', 'simple', or 'detailed'. The
default is 'summary'. Examples:
hbase> status
hbase> status 'simple'
hbase> status 'summary'
hbase> status 'detailed'
is there anything wrong?
I had the same problem. For me the solution was to add the following property to the hbase-site.xml
(for me it can be found under /usr/lib/hbase/conf
directory):
<configuration>
<property>
<name>zookeeper.znode.parent</name>
<value>/hbase-unsecure</value>
</property>
</configuration>
But this is only for the standalone mode. I still have no idea how to solve this problem when using external ZooKeeper.
这篇关于HBase 错误:zookeeper.znode.parent 不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!