转载请注明出处: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,问题解决。

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐