Hbase error zookeeper exists failed after 3 retiries

后端 未结 6 1238
抹茶落季
抹茶落季 2021-01-11 23:44

I am using HBASE 0.94.8 standalone mode in Ubuntu. Its working fine i am able to do every operations in Hbase-shell. But after i logged of my system its giving following err

6条回答
  •  说谎
    说谎 (楼主)
    2021-01-12 00:36

    Issue:

    Hbase error zookeeper exists failed after 3 retiries clearly indicates that zookeeper quorum is not running - most probable cause can be some inconsistency with your zookeeper.quorum setting in conf/hbase-site.xml, the minimal has to be:

    
      
        hbase.rootdir
        file:///home/testuser/hbase
      
      
        hbase.zookeeper.property.dataDir
        /home/testuser/zookeeper
      
    
    

    In the next section it is succinctly mentioned why zookeeper is required and how can one verify if it's running.


    An overview:

    Pre-assuming from your text (standalone setup) - you're mixing things up. Zookeeper in simple words manages HBase, and is a must requirement.

    By default HBase itself handles zookeeper setup, start-stop (though one can change) - to verify 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.

    Now for verification there's a helpful command (forget about the ps and then grep):

    $ jps
    

    the command will list all the java processes (HBase is itself a Java application) on the machine i.e. the probable output has to be (for a minimal standalone HBase setup):

    62019 Jps
    61098 HMaster        
    61233 HRegionServer     
    61003 HQuorumPeer
    

    Don't just kill the HBase process, instead use the start-stop utility:

    $ ./bin/stop-hbase.sh
    

    make the neccessary changes and start it again:

    $ ./bin/start-hbase.sh
    

    P.S. I could have misinterpreted your question (completely), do let me know in the comments I'll get back to you again and get the solution right - for the upcoming SO visitors.

提交回复
热议问题