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

Hadoop 节点/hbase不安全不在ZooKeeper中。检查'中配置的值;zookeeper.znode.parent';。,hadoop,hbase,Hadoop,Hbase,在我的ubuntu机器上启动独立hBase时出现此错误。请帮忙。花了大量时间使其运行:( 到目前为止,我已经检查了- /etc/hosts包含localhost 127.0.0.1 HBase:HBase-0.98.3-hadoop2-bin.tar.gz Hadoop:Hadoop-2.6.0.tar.gz 我的hbase-site.xml中已有节点/hbase不安全 当我尝试运行命令-create'usertable','resultfamily' 这给了我以下的例外- ERROR: The

在我的ubuntu机器上启动独立hBase时出现此错误。请帮忙。花了大量时间使其运行:( 到目前为止,我已经检查了-

  • /etc/hosts包含localhost 127.0.0.1
  • HBase:HBase-0.98.3-hadoop2-bin.tar.gz
  • Hadoop:Hadoop-2.6.0.tar.gz
  • 我的hbase-site.xml中已有节点/hbase不安全
  • 当我尝试运行命令-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>
    
    
    hbase.rootdir
    hdfs://localhost:54310/hbase
    hbase.zookeeper.property.dataDir
    /主页/hduser/zookeeper
    hbase.zookeeper.property.clientPort
    2181
    来自ZooKeeper的config zoo.cfg的属性。
    客户端将连接的端口。
    hbase.cluster.distributed
    符合事实的
    zookeeper.znode.parent
    /hbase不安全
    hbase.zookeeper.quorum
    本地服务器
    ZooKeeper仲裁中以逗号分隔的服务器列表。
    dfs.replication
    1.
    hbase.master
    hadoop主机:60000
    
    您能确认您的zookeeper中是否存在hbasee unsecure文件夹吗

    您只需使用下面的命令登录zookeeper并执行ls

    zookeeper客户端

    上面的命令将打开zookeeper外壳,然后执行ls

    ls/

    这将显示zookeeper中的文件夹


    它应该有hbase unsecure文件夹。

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

    请参考这里的完整答案


    谢谢你让我知道,这是我的第一个答案。请注意,我已经编辑了上面的答案。