首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >节点/hbase-不安全不在ZooKeeper中。检查在'zookeeper.znode.parent‘中配置的值。

节点/hbase-不安全不在ZooKeeper中。检查在'zookeeper.znode.parent‘中配置的值。
EN

Stack Overflow用户
提问于 2015-03-20 21:44:31
回答 2查看 5.5K关注 0票数 1

在我的ubuntu机器上启动独立的hBase时,我得到了这个错误。请帮帮忙。花了大量的时间让它运转起来。:(到目前为止我查过的-

  1. /etc/host包含本地主机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-不安全。

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

它给了我以下的例外-

代码语言:javascript
运行
复制
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

代码语言:javascript
运行
复制
<?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>
EN

回答 2

Stack Overflow用户

发布于 2015-03-25 13:02:40

你能确认你的动物园管理员中是否存在不安全的hbasee文件夹吗?

您只需登录到动物园管理员使用下面的命令和做ls。

zookeeper-client

上面的命令将打开动物园管理员外壳,然后执行ls。

ls /

这将显示带动物园管理员的文件夹。

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

票数 1
EN

Stack Overflow用户

发布于 2016-10-07 05:53:32

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

请参考这里的完整答案。

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

票数 -3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29176273

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档