Stand alone HBase on local file system getting zookeeper error?

后端 未结 2 755
我寻月下人不归
我寻月下人不归 2021-01-23 17:42

Hi guys I am trying to follow the quick start of HBase and start an HBase on the local file system( without using HDFS ) However when I start the shell using ./hbase shell and t

2条回答
  •  情话喂你
    2021-01-23 18:15

    The problem is here (in your conf - conf/hbase-site.xml):

    hbase.zookeeper.quorum
          localhost
    

    As the error "ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries" indicates there is some problem with your zookeeper.quorum directive. Or Before staring the HBase shell you can verify if the ZKQuorum is up, using:

    $ jps
    

    the command will list all the java processes on the machine i.e. the probable output has to be:

    62019 Jps
    61098 HMaster        
    61233 HRegionServer     
    61003 HQuorumPeer
    

    Solution:

    In your HBase directory, first stop the HBase:

    $ ./bin/stop-hbase.sh
    

    If you're trying to work out the 'standalone HBase' example - stick to the minimum conf provided in the example:

    
      
        hbase.rootdir
        file:///home/adio/workspace/hadoop/hbase/directories/hbase
      
      
        hbase.zookeeper.property.dataDir
        /home/adio/workspace/hadoop/hbase/directories/zookeeper
      
    
    

    i.e. your conf/hbase-site.xml should have the above content.

    Once set, now start the HBase again:

    $ ./bin/start-hbase.sh
    

提交回复
热议问题