hbase安装启动成功,但是执行命令报错
执行任意命令,比如list,都会报如下错误 ERROR [main] client.HConnectionManager$HConnectionImplementation:The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured
·
执行任意命令,比如list,都会报如下错误
ERROR [main] client.HConnectionManager$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文件配置错了一个参数导致的。
之前因为安装独立的zookeeper把里面的/conf/hbase-env.sh 中的 export HBASE_MANAGES_ZK=true 设置更改成了false,默认的是true,即base启动时调用系统的zookeeper,改成false则汇调用自己安装的外部的zookeeper.
更改回来就可以了,至于怎么调用外部的zookeeper而不报错,还在研究中。。。。。。
更多推荐
已为社区贡献2条内容
所有评论(0)