2017-09-10 136 views
1

我开始在单机模式下的动物园管理员的服务,动物园管理员二进制与卡夫卡一起进行。下面是zookeeper.properties使用现有的动物园管理员在HBase的

dataDir=/tmp/zookeeper      
clientPort=2181          
maxClientCnxns=0 

我使用下面的命令开始的动物园管理员的内容。

kafka/bin/zookeeper-server-start.sh config/zookeeper.properties 

现在zookeeper已启动并运行,所以我不希望hbase启动它自己的zookeeper服务。我在hbase-env.sh设置以下属性:

export HBASE_MANAGES_ZK=false 

而且,这里是hbase-site.xml内容。

<configuration>    
    <property>     
    <name>hbase.rootdir</name>        
    <value>hdfs://localhost:8030/hbase</value>    
    </property>     
</configuration>  

我试着用start-hbase.sh启动HBase的,并从/usr/local/hbase/logs/hbase-root-master-vultr.guest.out

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的仍试图开始自己的动物园管理员得到了日志,如何阻止它这样做?

回答

0

我假设你正试图在伪分布式模式下运行HBase的。在这种情况下,hbase.cluster.distributed应设置为true,你的动物园管理员法定人数细节应在HBase的-site.xml中作为Apache doc

提到提供