适用于单节点配置hbase  并且不用hbase自带的zookeeper,hmaser没有启动

启动hbase后发现hmaser没有启动

配置的logs查看错误信息
Could not start ZK at requested port of 2181.  ZK was started at port: 2182.  Aborting as clients (e.g. shell) will not be able to find this ZK quorum.

已经在hbase-env.sh文件中设置了export HBASE_MANAGES_ZK=false
er设置不使用自带zookeep,这样不适用hbase自带的zookeeper但是还是发现冲突报错

因为把hbase.cluster.distributed设置为false,让hbase以单独节点模式运行时,hbase依然会启动自带的zookeeper。

所以要把hbase.cluster.distributed 设置值为true:
vim conf/hbase-site.xml
<property>
<name>hbase.cluster.distributed</name>
<value>true</value> 
</property>

更多推荐