Hbase独立模式出错

时间:2016-02-08 13:21:15

标签: hadoop hbase

我的独立hbase启动,但是当我在shell中执行任何命令时,它会出错...

我尝试了很多解决方案,没有任何效果:( 错误讯息:

logged-in.html

JPS:

hbase(main):001:0> create 'emp' 'data'
16/02/08 18:42:57 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries
16/02/08 18:42:57 WARN zookeeper.ZKUtil: hconnection Unable to set watcher on znode (/hbase/hbaseid)
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
    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)
    at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:172)
    at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:450)

.
.
.
.

My /etc/hosts:



>  127.0.0.1       localhost
>     127.0.0.1       ankit21
>     192.168.43.11   pooja
>     192.168.43.143  laptop@kalpesh
>     192.168.43.72   aditi
>     # The following lines are desirable for IPv6 capable hosts(43.177)
>     ::1     ip6-localhost ip6-loopback
>     fe00::0 ip6-localnet
>     ff00::0 ip6-mcastprefix
>     ff02::1 ip6-allnodes
>     ff02::2 ip6-allrouters

1 个答案:

答案 0 :(得分:1)

好吧,你需要开始你的zookeeper服务。在运行 jps 命令后,您应该能够找到“QuorumPeer”作为zookeeper的服务。

在启动zookeeper服务之前,请确保已在conf目录中配置了zoo.cfg。您需要在zoo.cfg中添加机器ip以及zookeeper的端口。