加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-13 17:56:11 所属栏目:Linux 来源:网络整理
导读:问题 第一个目标是独立运行HBase. HBase启动后,导航到ip:60010 / master-status是成功的. 第二个目标是运行一个独特的ZooKeeper仲裁. ZooKeeper已下载并已启动: netstat -nato | grep 2181tcp 0 0 :::2181 :::* LISTEN off (0.00/0/0) conf / hbase-env.sh
问题

第一个目标是独立运行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?

解决方法

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

避免HBase管理自己的ZooKeeper.

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读