ZooKeeper exists failed after 3 retries

后端 未结 2 1207
梦毁少年i
梦毁少年i 2021-01-13 03:20

I am running Hadoop-1.2.1 and HBase-0.94.11 in a pseudo-distributed mode.

Due to power failure Hadoop and HBase set up went down.Next time when I restarted my machin

2条回答
  •  情歌与酒
    2021-01-13 03:48

    It's straightforward the zookeeper quorum process is not running - if it has been, there'd have been another java process:

    hduser@user-ubuntu:~$ jps
    16914 NameNode
    19955 Jps
    29460 Main
    17728 TaskTracker
    19776 HMaster
    17490 JobTracker
    17392 SecondaryNameNode
    

    xxxxx HQuorumPeer

    Zookeeper is required for HBase cluster - as it manages it.


    Possible solutions: By default HBase manages zookeeper itself i.e. starting and stopping the zookeeper quorum (the cluster of zookeeper nodes) - to verify the settings look into the file conf/hbase-evn.sh (in your hbase directory) there must be a line:

    export HBASE_MANAGES_ZK=true
    

    Basically tells HBase whether it should manage its own instance of Zookeeper or not. In case it is set to false, edit to true.

    Also verify the HBase conf at conf/hbase-site.xml,

    The minimum conf that should work for pseudo-distributed mode is:

    
    
      hbase.cluster.distributed
      true
    
    
        hbase.rootdir
       hdfs://localhost:9000/hbase   
      
      
        hbase.zookeeper.property.dataDir
        /home//zookeeper
      
    
    

    Now stop the HBase, if it's been running:

    $ ./bin/stop-hbase.sh
    

    make the neccessary changes and start it again:

    $ ./bin/start-hbase.sh
    

    Answers you may find helpful:1 2

提交回复
热议问题