问题描述
我已经在独立模式下安装了 hbase。 我在 hbase-env.sh 中添加了 java 路径 以下是我在 hbase-site.xml 中添加的属性
<configuration>
//Here you have to set the path where you want HBase to store its files.
<property>
<name>hbase.rootdir</name>
<value>file:///home/hadoop/HBase/HFiles</value>
</property>
//Here you have to set the path where you want HBase to store its built in zookeeper files.
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/local/hbase/zookeeper</value>
</property>
</configuration>
我启动了 hbase master 和 zookeeper
zkServer.sh start
start-hbase.sh
以下是jps命令的结果
233731 资源管理器 225793 名称节点 313680 QuorumPeerMain 1309478 日元 227126 数据节点 229865 SecondaryNameNode 234350 节点管理器
我在这里看不到大师
当我在 hbase shell 中运行 status 时,出现以下错误:
2021-03-03 22:42:00,845 ERROR [main] client.ConnectionManager$HConnectionImplementation: 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.
2021-03-03 22:42:00,951 ERROR [main] client.ConnectionManager$HConnectionImplementation: 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.
2021-03-03 22:42:01,154 ERROR [main] client.ConnectionManager$HConnectionImplementation: 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.
2021-03-03 22:42:01,456 ERROR [main] client.ConnectionManager$HConnectionImplementation: 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.
2021-03-03 22:42:01,962 ERROR [main] client.ConnectionManager$HConnectionImplementation: 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.
2021-03-03 22:42:02,965 ERROR [main] client.ConnectionManager$HConnectionImplementation: 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.
2021-03-03 22:42:04,973 ERROR [main] client.ConnectionManager$HConnectionImplementation: 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.
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.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)