错误:无法从ZooKeeper获取主地址; hbase-1.3.1中的znode data == null

时间:2017-11-07 13:15:22

标签: hadoop hbase

我安装了hadoop-2.7.4,Hbase 1.3.1。

连接到hbase shell后安装后我可以观察到错误无法从ZooKeeper获取主地址; znode data == null

有人可以帮我解决这个问题吗

Hadoop版本:/home/vm1/hadoop-2.7.4/sbin

hadoop1@ubuntu:/home/vm1/hadoop-2.7.4/sbin$ jps
4503 Jps
3961 SecondaryNameNode
3404 NameNode
4110 ResourceManager
4415 NodeManager
3631 DataNode

hadoop1@ubuntu:/home/vm1/hadoop-2.7.4/sbin$ jps -l
3961 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode
3404 org.apache.hadoop.hdfs.server.namenode.NameNode
4653 sun.tools.jps.Jps
4110 org.apache.hadoop.yarn.server.resourcemanager.ResourceManager
4415 org.apache.hadoop.yarn.server.nodemanager.NodeManager
3631 org.apache.hadoop.hdfs.server.datanode.DataNode
hadoop1@ubuntu:/home/vm1/hadoop-2.7.4/sbin$ 

Hbase版本:hbase-1.3.1

Zookeeper service is running
----------------------------

hadoop1@ubuntu:/home/vm1/hbase-1.3.1/bin$ jps -l
5026 org.apache.hadoop.hbase.zookeeper.HQuorumPeer
5091 org.apache.hadoop.hbase.master.HMaster
5222 org.apache.hadoop.hbase.regionserver.HRegionServer
5305 sun.tools.jps.Jps
3961 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode
3404 org.apache.hadoop.hdfs.server.namenode.NameNode
4110 org.apache.hadoop.yarn.server.resourcemanager.ResourceManager
4415 org.apache.hadoop.yarn.server.nodemanager.NodeManager
3631 org.apache.hadoop.hdfs.server.datanode.DataNode
hadoop1@ubuntu:/home/vm1/hbase-1.3.1/bin$

Hbase shell

hbase(main):001:0> list
TABLE                                                                                                     

        **ERROR: Can't get master address from ZooKeeper; znode data == null**

    hbase(main):002:0> 


        hbase(main):003:0* create 'employee', 'sal_details'

        ERROR: Can't get master address from ZooKeeper; znode data == null

配置hdfs-site.xml的详细信息

<configuration>

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

<property>
<name>hbase.master.port</name> 
<value>60010</value>
</property>

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

<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>

<property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/home/vm1/hbase-1.3.1/zookeeper</value>
</property>

<property>
<name>hbase.zookeeper.property.maxClientCnxns</name>
<value>35</value>
</property>
</configuration>

0 个答案:

没有答案