Could not start ZK at requested port of 2181. ZK was started at port: 2182.


安装版本:

hadoop-1.1.2
zookeeper-3.4.6
hbase-0.94.20

 

问题描述:

conf/hbase-env.sh增加如下配置:

export HBASE_MANAGES_ZK=false

启动hbase没有提示错误,但是在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.

解决办法:

conf/hbase-site.xml中修改hbase.cluster.distributed的值

<configuration>
  <property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
  </property>
</configuration>

解释:

hbase.cluster.distributed

Hbase的运行模式。false是单机模式,true是分布式模式。若为false,Hbase和Zookeeper会运行在同一个JVM里面。

默认: false

 

 参考:

1、http://yankaycom-wordpress.stor.sinaapp.com/hbase/book.html?q=/wp-content/hbase/book.html#hbase_default_configurations

2、https://serverfault.com/questions/599661/could-not-start-zk-at-requested-port-of-2181-while-export-hbase-manages-zk-fals/601549#601549?newreg=fbd24a54f1d84f818c2687f62a7a5626

3、http://yankaycom-wordpress.stor.sinaapp.com/hbase/book.html?q=/wp-content/hbase/book.html#standalone_dist

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM