HBASE安装 - 获取ZOOKEPER相关错误

时间:2015-05-28 17:30:44

标签: hadoop hbase apache-zookeeper

我能够转到hbase提示符但是当我尝试创建表格时会出现以下错误:

ERROR zookeeper.ZooKeeperWatcher: hconnection Received unexpected KeeperException, re-throwing exception
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
    at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1041)

我在hbase-site.xml

中有以下代码
<configuration>enter code here
<property>
<name>hbase.rootdir</name>
<value>file:///usr/lib/hbase/hbase-0.94.8</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/lib/hbase/zookeeper</value>
</property>
</configuration>

不确定为什么我的虚拟机的IP地址发生了变化,就像192.268.211.xyz一样,更改后增加了最后一个值。

如果有人知道如何在VM(Ubuntu)中的Hadoop上安装Hbase,请与我分享。

1 个答案:

答案 0 :(得分:1)

Hbase配置:

编辑你Main

hbase-site.xml