本文介绍了节点/ hbase-unsecure不在ZooKeeper中。检查'zookeeper.znode.parent'中配置的值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的ubuntu机器上启动独立hBase时出现此错误。请帮忙。花费大量的时间让它运行。 :(
我到目前为止检查过的内容 -


  1. / etc / hosts包含本地主机127.0.0.1

  2. HBase:hbase-0.98.3-hadoop2-bin.tar.gz

  3. Hadoop:hadoop-2.6.0.tar.gz

  4. 我的hbase-site.xml中已经有了node / hbase-unsecure。

当我尝试运行命令 - 创建'usertable','resultfamily'



它给了我一个例外 -

 错误:节点/ hbase-unsecure不在ZooKeeper中,它应该由主服务器写入,检查在'zookeeper.znode.parent'中配置的值,可能与配置在zookeeper.znode.parent中的值不匹配。 master。

hbase-site.xml $ b

 <?xml version =1.0?> 
<?xml-stylesheet type =text / xslhref =configuration .xsl?>

<配置>
<属性>
<名称> hbase.rootdir< / name>
<值> hdfs:// localhost:54310 / hbase< /值>
< / property>

<属性>
<名称> hbase.zookeeper.property.dataDir< / name>
<值> / home / hduser / zookeeper< /值>
< / property>

<属性>
< name> hbase.zookeeper.property.clientPort< / name>
<值> 2181< /值>
< description>来自ZooKeeper配置zoo.cfg的属性。
客户端将连接的端口。
< / description>
< / property>

<属性>
<名称> hbase.cluster.distributed< /名称>
<值> true< /值>
< / property>

<属性>
<名称> zookeeper.znode.parent< / name>
<值> / hbase-unsecure< /值>
< / property>

<属性>
<名称> hbase.zookeeper.quorum< / name>
<值>本地主机< /值>
< description> ZooKeeper仲裁服务器中的逗号分隔列表。
< / description>
< / property>

<属性>
< name> dfs.replication< / name>
<值> 1< /值>
< / property>

<属性>
<名称> hbase.master< / name>
<值> hadoop-master:60000< /值>
< / property>

< / configuration>


解决方案

您可以验证hbasee-unsecure文件夹是否存在你的动物园管理员?



您可以使用下面的命令登录到zookeeper并执行ls。

zookeeper-client

上面的命令将打开zookeeper shell,然后执行ls。

ls /



这将显示zookeeper目前的文件夹。



它应该有hbase-不安全的文件夹。


I am getting this error while starting standalone hBase on my ubuntu machine. Please help. Spent a huge amount of time to get it running. :(What I have checked so far -

  1. /etc/hosts contains localhost 127.0.0.1
  2. HBase : hbase-0.98.3-hadoop2-bin.tar.gz
  3. Hadoop: hadoop-2.6.0.tar.gz
  4. I already have the node /hbase-unsecure in my hbase-site.xml.

When I try to run the command - create 'usertable', 'resultfamily'

It gives me following exception -

ERROR: The node /hbase-unsecure is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master.

hbase-site.xml

<?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

    <configuration>
      <property>
        <name>hbase.rootdir</name>    
        <value>hdfs://localhost:54310/hbase</value>
      </property>

      <property>
        <name>hbase.zookeeper.property.dataDir</name>
        <value>/home/hduser/zookeeper</value>
      </property>

      <property>
          <name>hbase.zookeeper.property.clientPort</name>
          <value>2181</value>
          <description>Property from ZooKeeper's config zoo.cfg.
          The port at which the clients will connect.
          </description>
      </property>

      <property>
            <name>hbase.cluster.distributed</name>
            <value>true</value>
        </property>

       <property>
            <name>zookeeper.znode.parent</name>
            <value>/hbase-unsecure</value>
        </property>

        <property>
          <name>hbase.zookeeper.quorum</name>
          <value>localhost</value>
          <description>Comma separated list of servers in the ZooKeeper Quorum.
          </description>
        </property>

      <property>
             <name>dfs.replication</name>
             <value>1</value>
        </property>

      <property>
            <name>hbase.master</name> 
            <value>hadoop-master:60000</value>
      </property>

    </configuration>
解决方案

Can you verify that hbasee-unsecure folder is present in your zookeeper?

You can just login into zookeeper by using below command and do ls.

zookeeper-client

Above command will open zookeeper shell and then do ls.

ls /

This will show folders present with zookeeper.

It should have hbase-unsecure folder in it.

这篇关于节点/ hbase-unsecure不在ZooKeeper中。检查'zookeeper.znode.parent'中配置的值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 01:23