首页 > 其他 > 详细

【异常】Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting a

时间:2019-12-28 20:22:58      阅读:76      评论:0      收藏:0      [点我收藏+]

HMaster和HRegionServer是Hbase的两个子进程,但是使用jps发现没有启动起来,所以去我们配置的logs查看错误信息。提示:
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-env.sh文件中设置了export HBASE_MANAGES_ZK=false
设置不使用自带zookeeper,这一步设置完按理说就可以使用独立的zookeeper程序了,但是还是报错。很明显,这是启动自带zookeeper与独立zookeeper冲突了。因为把hbase.cluster.distributed设置为false,也就是让hbase以standalone模式运行时,依然会去启动自带的zookeeper。

所以要做如下设置,值为true:
vim conf/hbase-site.xml
<property>
                <name>hbase.cluster.distributed</name>
               <value>true</value> 
</property>

【异常】Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting a

原文:https://www.cnblogs.com/huomei/p/12112800.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!