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

标签 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数据== 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>

最佳答案

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 的主机名!

关于hadoop - 无法从 ZooKeeper 获取主地址。我在创建 Hbase 表时遇到此错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42183864/

相关文章:

hadoop - pig 壳设置: automatically executing pig scripts

performance - HDFS 与 HBASE : Which one performs better on millions of small text files?

hadoop - 如何通过 StarGate REST API 向 HBase 中插入数据

java - 类路径中重复 guava.jar

java - 无法从 MapReduce 代码访问 HBase

apache-zookeeper - 使用 Supervisord 监督 ZooKeeper

python - 我可以递归地在 Zookeeper 中创建路径吗?

java - Hadoop 选项没有任何效果(mapreduce.input.lineinputformat.linespermap、mapred.max.map.failures.percent)

hadoop - Hadoop UI未显示作业选项卡,作业进度和作业历史记录

hadoop - 将来自不同文件夹的 map-reduce 输出合并到单个文件夹中