Could not start ZK at requested port of 2181, while export HBASE_MANAGES_ZK=false

Posted by utrecht on Server Fault See other posts from Server Fault or by utrecht
Published on 2014-05-30T09:52:04Z Indexed on 2014/06/09 3:29 UTC
Read the original article Hit count: 2804

Filed under:
|
|
|

Problem

The first aim was to run HBase standalone. Navigating to ip:60010/master-status is succesfull once HBase has been started.

The second aim is to run a distinct ZooKeeper quorum. ZooKeeper has been downloaded and has been started:

netstat -nato | grep 2181
tcp        0      0 :::2181                     :::*                        LISTEN      off (0.00/0/0)

The conf/hbase-env.sh was changed as follows:

# Tell HBase whether it should manage it's own instance of Zookeeper or not.
export HBASE_MANAGES_ZK=false

in order to avoid HBase starts ZooKeeper once HBase has been started.

However, the following error occurs once HBase has been started.

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.

Question

How to disable the startup of ZooKeeper by HBase and run ZooKeeper separately?

© Server Fault or respective owner

Related posts about linux

Related posts about hadoop