问题
第一个目标是独立运行HBase。一旦启动HBase,导航到ip:60010 / master-status即可成功。
第二个目标是运行一个不同的ZooKeeper仲裁。ZooKeeper已下载并启动:
netstat -nato | grep 2181
tcp 0 0 :::2181 :::* LISTEN off (0.00/0/0)
的conf/hbase-env.sh
更改如下:
# Tell HBase whether it should manage it's own instance of Zookeeper or not.
export HBASE_MANAGES_ZK=false
为了避免HBase在启动HBase后启动ZooKeeper。
但是,一旦启动HBase,就会发生以下错误。
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.
题
如何通过HBase禁用ZooKeeper的启动并分别运行ZooKeeper?