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