hbase集群error:the node /hbase不在zookeeper中

klh5stk1  于 2021-05-29  发布在  Hadoop
关注(0)|答案(0)|浏览(136)

我在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

这是我的hbase-site.xml,在所有3台计算机中都是相同的

<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.

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

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题