当前位置: 代码迷 >> 综合 >> 启动HBase报错Could not start ZK at requested port of 2181. ZK was started at port: 2182.
  详细解决方案

启动HBase报错Could not start ZK at requested port of 2181. ZK was started at port: 2182.

热度:112   发布时间:2023-11-17 05:28:51.0

背景

使用start-hbase.cmd启动hbase的master时,报错Could not start ZK at requested port of 2181. ZK was started at port: 2182.

解决方法

由于HBaseHome\config\hbase-env.cmd中没有对HBASE_MANAGES_ZK进行设置,所以启动HBase的master时,会启动zookeeper,而我之前已经启动了一个zookeeper,所以就发生了端口占用问题。

最简单的解决方法当然是关闭之前的zookeeper,直接启动hbase的master即可。

  相关解决方案