我以独立模式运行HBase,并收到以下错误。
2016-10-05 16:29:06,268 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.
HBase-site.xml文件中HBase的独立模式的zookeeper.znode.parent值是什么?
需要检查HBase日志,然后继续寻求解决方案。
请参阅下面的文章以对错误进行故障排除。
https://sarangmanjrekar.wordpress.com/2016/10/06/node-hbase-is-not-in-zookeeper/
您可以从HBase日志中获得最佳解决方案。就我而言,我在同一台服务器上运行Kafka + zookeeper和HBase。因此,每当我尝试运行hbase shell时,我都会在控制台上遇到相同的错误。当我检查日志并发现
端口已在使用中
所以我刚刚在hbase-site.xml文件中更改了zookeeper的端口号,一切开始运行。