欢迎投稿

今日深度:

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

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

 

www.htsjk.Com true http://www.htsjk.com/hbase/27209.html NewsArticle 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没有提...
相关文章
    暂无相关文章
评论暂时关闭