今天在安裝hbase(1.2.3)單機版剂习,安裝完畢啟動沒有問題玫恳,但是在運行hbase shell執(zhí)行命令的時候卻拋出了異常哆姻,經(jīng)過google后解決了問題焦影,問題如下:
比如:執(zhí)行 list 命令:
1. 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.
根據(jù)報錯信息也能夠發(fā)現(xiàn)是配置的問題衔彻。
解決方法:
在hbase-site.xml文件中添加如下配置:
<property>
<name>zookeeper.znode.parent</name>
<value>/hbase</value>
</property>