Stand alone HBase on local file system getting zookeeper error?

后端 未结 2 754
我寻月下人不归
我寻月下人不归 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:14

    Your zookeeper quorum name must be the hostname of your machine and must also be present in the /etc/hosts file. Try restarting the network after this.

    0 讨论(0)
  • 2021-01-23 18:15

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

    <name>hbase.zookeeper.quorum</name>
          <value>localhost</value>
    

    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:

    <configuration>
      <property>
        <name>hbase.rootdir</name>
        <value>file:///home/adio/workspace/hadoop/hbase/directories/hbase</value>
      </property>
      <property>
        <name>hbase.zookeeper.property.dataDir</name>
        <value>/home/adio/workspace/hadoop/hbase/directories/zookeeper</value>
      </property>
    </configuration>
    

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

    Once set, now start the HBase again:

    $ ./bin/start-hbase.sh
    
    0 讨论(0)
提交回复
热议问题