QBoard » Big Data » Big Data - Data Storage : Hive, HBase, MongoDB, Teradata.. » Hbase Error “ERROR: KeeperErrorCode = NoNode for /hbase/master”

Hbase Error “ERROR: KeeperErrorCode = NoNode for /hbase/master”

  • 0
     
    While executing any command in hbase shell, I am receiving the following error "ERROR: KeeperErrorCode = NoNode for /hbase/master" in hbase shell.

    Started HBASE :

    HOSTCHND:hbase-2.0.0 gvm$ ./bin/start-hbase.sh
    localhost: running zookeeper, logging to /usr/local/Cellar/hbase-2.0.0/bin/../logs/hbase-gvm-zookeeper-HOSTCHND.local.out
    running master, logging to /usr/local/Cellar/hbase-2.0.0/logs/hbase-gvm-master-HOSTCHND.local.out
    : running regionserver, logging to /usr/local/Cellar/hbase-2.0.0/logs/hbase-gvm-regionserver-HOSTCHND.local.out

    While Checking status in HBASE SHELL :

    hbase(main):001:0> status

    ERROR: KeeperErrorCode = NoNode for /hbase/master

    Show cluster status. Can be 'summary', 'simple', 'detailed', or 'replication'. The
    default is 'summary'. Examples:

    hbase> status
    hbase> status 'simple'
    hbase> status 'summary'
    hbase> status 'detailed'
    hbase> status 'replication'
    hbase> status 'replication', 'source'
    hbase> status 'replication', 'sink'

    Took 9.4096 seconds
    hbase(main):002:0>

    hbase-site.xml



    hbase.rootdir
    hdfs://localhost:9000/hbase


    hbase.zookeeper.property.clientPort
    2181


    hbase.zookeeper.property.dataDir
    /usr/local/Cellar/hbase-2.0.0/hbasestorage/zookeeper


    hbase.cluster.distributed
    true


    hbase.zookeeper.quorum
    localhost



    Please let me know why this error happens while executing hbase commands?
      May 23, 2019 2:50 PM IST
    0
  • First, make sure that the IP and host name mapping has been set up in the hosts file.

    Second, modify the HBase temporary directory location. the temporary directory data will be emptied regularly. The default of the temporary directory is on the /tmp change them in hbase-site.xml


    hbase.tmp.dir
    /hbase/tmp
    Temporary directory on the local filesystem.


    If it doesn't works . clean hbase data directory ,also clean the metadata in zookeeper restart hbase again .

    what is more ,check your ntp & firewall .
      May 23, 2019 2:52 PM IST
    0
  • First, make sure that the IP and host name mapping has been set up in the hosts file.

    Second, modify the HBase temporary directory location. the temporary directory data will be emptied regularly. The default of the temporary directory is on the /tmp change them in hbase-site.xml

    <property>
            <name>hbase.tmp.dir</name>
            <value>/hbase/tmp</value>
            <description>Temporary directory on the local filesystem.</description>
    </property>​

     

    If it doesn't works . clean hbase data directory ,also clean the metadata in zookeeper restart hbase again .

    what is more ,check your ntp & firewall .

      August 10, 2021 3:03 PM IST
    0
  • was facing a similar issue: follow the below steps

    People may face other issues also. Mentioning them below here"

    1. Setup zookeeper also: https://www.tutorialspoint.com/zookeeper/zookeeper_installation.htm
    2. May face permission issues so assign chmod -R 777 to /tmp/zookeeper, /usr/local/var/hbase, /usr/local/Cellar/hbase
    3. Add admin.enableServer=false in bin/zoo.cfg to avoid address bind exceptions
    4. Try to run both HBase and zookeeper without sudo.
      January 15, 2022 1:01 PM IST
    0
  • In my case I was receiving this "ERROR: KeeperErrorCode = NoNode for /hbase/master" because HMaster process was not running.

    Check with jps command.

    hdusr@hdp-master-1:$ jps
    27504 Main
    32755 DataNode
    23316 HQuorumPeer
    27957 Jps
    646 SecondaryNameNode
    27097 HMaster
    23609 HRegionServer
    1562 Master
    1722 Worker
    911 ResourceManager
    32559 NameNode
    1167 NodeManager

     

    If you don't see HMaster process as in above list then that's the reason for ERROR: KeeperErrorCode = NoNode. in hbase shell.

    In $HBASE_HOME/logs directory check for hbase-***-master.log for specific error.

    In my case there were 2 reasons ,

    First :

     

    WARN  [main-SendThread(localhost:2181)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
    java.net.ConnectException: Connection timed out

    Which I solved by replacing 'localhost' with 'my machine's hostname' in hbase-site.xml. from this answer

    Second :

        ERROR [master/spark-hdp-master-1:16000:becomeActiveMaster] master.HMaster: Failed to become active masterorg.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): org.apache.hadoop.security.AccessControlException: SIMPLE authentication is not enabled.  Available:[TOKEN]
    

     

     

      January 17, 2022 2:04 PM IST
    0