linux – 无法在请求的2181端口启动ZK,而导出HBASE_MANAGES_ZK = false

前端之家收集整理的这篇文章主要介绍了linux – 无法在请求的2181端口启动ZK,而导出HBASE_MANAGES_ZK = false前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
问题

第一个目标是独立运行HBase. HBase启动后,导航到ip:60010 / master-status是成功的.

第二个目标是运行一个独特的ZooKeeper仲裁. ZooKeeper已下载并已启动:

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

conf / hbase-env.sh更改如下:

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

HBase启动后,为了避免HBase启动ZooKeeper.

但是,HBase启动后会发生以下错误.

  1. Could not start ZK at requested port of 2181. ZK was started at port: 2182.
  2. Aborting as clients (e.g. shell) will not be able to find this ZK quorum.

如何通过HBase禁用ZooKeeper的启动并单独运行ZooKeeper?

解决方法

根据 this documentation,/usr/lib/hbase/conf/hbase-site.xml文件需要配置如下:
  1. <configuration>
  2. <property>
  3. <name>hbase.cluster.distributed</name>
  4. <value>true</value>
  5. </property>
  6. </configuration>

避免HBase管理自己的ZooKeeper.

配置完成后,zookeeper-server和hbase-master独立启动.

猜你在找的Linux相关文章