進行hbase偽分布式模式配置,hadoop版本2.10.0辅搬,hbase版本1.6.0(1.5.0同)缆瓣,按照相應的教程(http://dblab.xmu.edu.cn/blog/install-hbase/)配置./hbase/conf/hbase-env.sh和./hbase/conf/hbase-site.xml文件,運行hbase shell 出現(xiàn)以下錯誤:
hbase(main):001:0> list
TABLE
ERROR: Can't get master address from ZooKeeper; znode data == null
Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:
hbase> list
hbase> list 'abc.'
hbase> list 'ns:abc.'
hbase> list 'ns:.*'
且用命令啟動hbase之后,輸入jps查看后會發(fā)現(xiàn)HBase服務只剩余HQuorumPeer還在運行诗鸭,Hregionserver和hmaster已經消失。
各種嘗試之后参滴,發(fā)現(xiàn)只要將./hbase/conf/hbase-site.xml文件修改成以下格式即可正常運行:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>
</configuration>