HBase之——连接不上Zookeeper的解决方案

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/l1028386804/article/details/88695338

转载请注明出处:https://blog.csdn.net/l1028386804/article/details/88695338

当HBase连不上Zookeeper时,会报出如下的错误信息:

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.

解决方案如下:

1).hbase-env.sh 将 export HBASE_MANAGES_ZK 属性设置为false 

export HBASE_MANAGES_ZK=false

2).hbase-site.xml 将 hbase.cluster.distributed 设置为true

<property>
    <name>hbase.cluster.distributed</name> 
    <value>true</value>
</property>

重启HBase,问题解决。

猜你喜欢

转载自blog.csdn.net/l1028386804/article/details/88695338
今日推荐