异常Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting a
Posted huomei
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了异常Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting a相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
eclipse Run On Server 异常:could not load the Tomcat Server configuration at Servers\tomcat V5.0 Serto
could not launch process: decoding dwarf section info at offset 0x0: too short
工作经验 部署阿帕奇的时候出现 Starting httpd: httpd: apr_sockaddr_info_get() failed for server1 httpd: Could not r
could not be installed at this time