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

时间:2025-04-12 07:47:31

转载请注明出处:/l1028386804/article/details/88695338

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

Could not start ZK at requested port of 2181.  ZK was started at port: 2182.  Aborting as clients (. shell) will not be able to find this ZK quorum.

解决方案如下:

1). 将 export HBASE_MANAGES_ZK 属性设置为false 

export HBASE_MANAGES_ZK=false

2). 将 设置为true

<property>
    <name></name> 
    <value>true</value>
</property>

重启HBase,问题解决。