[HBase] – the default port is occupied, and an error is reported when starting

When starting HBase, you can set   export HBASE_MANAGES_ZK = true, let HBase use its own ZK

At that time, the following errors were reported when starting:

starting master, logging to /home/wde/hbase/hbase/bin/../logs/hbase-wde-master-ict003.out
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.


It seems that the default 2181 port has been occupied. If the ZK port is not specified in hbase-site.xml, the default 2181 port is used. Once port 2181 is occupied, it will cause startup failure

Modify hbase-site.xml and add the following line:

  & lt; property>

          & lt; name> hbase.zookeeper.property.clientPort</ name>

          & lt; value> 2182</ value>                                                                                                                                              

  & lt;/ property>  


Then you can start HBase normally.

Similar Posts: