无法从ZooKeeper获取主地址。我在创建Hbase表时收到此错误

时间:2017-02-12 03:18:21

标签: hadoop hbase apache-zookeeper

following is the error, i'm getting when creating the table. ERROR: Can't get master address from ZooKeeper; znode data == null (Image)

以下是错误,我在创建表时得到了。 错误:无法从ZooKeeper获取主地址; znode data == null

services running (Image)

以下是hbase-site.xml配置 -

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

<property>
<name>hbase.rootdir</name>
<value>hdfs://127.0.0.1:8020/hadoop/supported/hbaseData</value>
  </property>
  
  <property>
    <name>hbase.zookeeper.property.clientPort</name>
    <value>2181</value>
    <description>Property from ZooKeeper's config zoo.cfg.
                 The port at which the clients will connect.</description>
</property>

</configuration>

1 个答案:

答案 0 :(得分:0)

hbase.zookeeper.quorum 可能有问题。您可以尝试如下所示。

<property>
    <name>hbase.zookeeper.quorum</name>
    <!__<value>localhost</value> NOT OK!-->
    <!--<value>127.0.0.1</value> NOT OK!-->
    <!--<value>192.168.31.66</value> OK!-->
    <value>zss</value> 
</property>

和zss是我MAC的主机名!