get “ERROR: Can't get master address from ZooKeeper; znode data == null” when using Hbase shell

前端 未结 8 777
醉梦人生
醉梦人生 2020-12-09 11:27

I installed Hadoop2.2.0 and Hbase0.98.0 and here is what I do :

$ ./bin/start-hbase.sh 

$ ./bin/hbase shell

2.0.0-p353 :001 > list

the

相关标签:
8条回答
  • 2020-12-09 11:49

    One quick solution could be to Restart hbase:

    1) Stop-hbase.sh
    2) Start-hbase.sh
    
    0 讨论(0)
  • 2020-12-09 11:50

    This could also happen if the vm or the host machine is put to sleep ,Zookeeper will not stay live. Restarting the VM should solve the problem.

    0 讨论(0)
  • 2020-12-09 11:51

    if it's happening in VMWare or virtual box please restart Cloudera by command init1 please check you have root privilege and retry hope it will help :)

    hbase shell

    0 讨论(0)
  • 2020-12-09 12:00

    I had the exact same error. The Linux firewall was blocking connectivity. One can test ports via telnet. A quick fix is to turn off the firewall and see if it fixes it:

    Completely disable the firewall on all of your nodes. Note: this command will not survive a reboot of your machines.

    systemctl stop firewalld
    

    Long term fix is that you must configure the firewall to allow the hbase ports.

    Note, your version of hbase may use different ports: https://issues.apache.org/jira/browse/HBASE-10123

    0 讨论(0)
  • 2020-12-09 12:09

    The output from Hbase shell is quite high level that many misconfiguration would cause this message. To help yourself debug, it would be much better to look into the hbase log in

    /var/log/hbase 
    

    to figure out the root cause of the issue.

    I had the same problem too. For me, my root cause was due to hadoop-kms having a conflicting port number with my hbase-master. Both of them are using port 16000 so my HMaster didn't even get started when I invoke hbase shell. After I fixed that, my hbase worked.

    Again, kms port conflict might not be your root-cause. Strongly suggest looking into /var/log/hbase to find the root cause.

    0 讨论(0)
  • 2020-12-09 12:10

    You need to start zookeeper and then run Hbase-shell

    {HBASE_HOME}/bin/hbase-daemons.sh {start,stop} zookeeper
    

    and you may want to check this property in hbase-env.sh

    # Tell HBase whether it should manage its own instance of Zookeeper or not.
    export HBASE_MANAGES_ZK=false
    

    Refer to Source - Zookeeper

    0 讨论(0)
提交回复
热议问题