Hbase集群错误:节点/ hbase不在ZooKeeper中

时间:2015-09-21 11:25:47

标签: ubuntu hadoop hbase

我在3台运行良好的Ubuntu机器中配置了Hadoop集群

HadoopMaster
HadoopSlave1
HadoopSlave2

我需要在这些机器中设置Hbase群集

我配置了

 1)HadoopMaster as namenode,ResourceManager, secondary namenode and HQuorumPeer and HMaster
 2)HadoopSlave1 and HadoopSlave2 as datanode,NodeManager and RegionServer

这是我所有3台机器中的hbase-site.xml

<configuration>
  <property>
    <name>hbase.master</name>
    <value>HadoopMaster:60000</value>
  </property>
  <property>
    <name>hbase.rootdir</name>
    <value>hdfs://HadoopMaster:9000/hbase</value>
  </property>
  <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
  </property>
</configuration>

这是我所有机器中的regionserver文件

 HadoopSlave1
 HadoopSlave2

这是我所有机器中的hbase-env.sh文件

export JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre/
export HBASE_MANAGES_ZK=true

当我启动-hbase.sh时,每个进程都在运行,但是当我在hbase shell中创建表时。它像这样抛出错误

ERROR: The node /hbase 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.

如何解决这个问题。提前谢谢

0 个答案:

没有答案