【问题标题】:The node /hbase-unsecure is not in ZooKeeper. Check the value configured in 'zookeeper.znode.parent'.节点 /hbase-unsecure 不在 ZooKeeper 中。检查“zookeeper.znode.parent”中配置的值。
【发布时间】:2015-05-24 10:30:00
【问题描述】:

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

  1. /etc/hosts 包含 localhost 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 中已经有节点 /hbase-unsecure。

当我尝试运行命令时 - create 'usertable', 'resultfamily'

它给了我以下异常 -

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>

【问题讨论】:

    标签: hadoop hbase


    【解决方案1】:

    您能否验证您的 zookeeper 中是否存在 hbasee-unsecure 文件夹?

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

    动物园管理员客户端

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

    ls /

    这将显示与 zookeeper 一起存在的文件夹。

    里面应该有 hbase-unsecure 文件夹。

    【讨论】:

      【解决方案2】:

      需要检查 HBase 日志是否有错误,最常见的解决方案是在 HBase-env.sh 文件中设置正确的参数。

      请在此处参考完整答案。

      https://sarangmanjrekar.wordpress.com/2016/10/06/node-hbase-is-not-in-zookeeper/

      【讨论】:

      • 感谢您告诉我,这是我的第一个答案。会注意并编辑了上面的答案。
      猜你喜欢
      • 1970-01-01
      • 2018-06-04
      • 1970-01-01
      • 1970-01-01
      • 2017-05-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多