HBase on Hortonworks HDP Sandbox: Can't get master address from ZooKeeper

女生的网名这么多〃 提交于 2019-12-06 05:13:36

问题


I downloaded HDP 2.1 from hortonworks for virtualbox. I got the following error when using Hbase shell in case simple command: create 't1', {NAME=> 'f1', VERSIONS => 5}

Hortonworks “ERROR: Can't get master address from ZooKeeper; znode data == null”

What do I need to do to get hbase working in this sandbox environment?


回答1:


In hortonwork sandbox you have to manually start hbase.

Try to run the following command (as root user),

su hbase - -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf start master; sleep 20"

su hbase - -c "/usr/lib/hbase/bin/hbase-daemon.sh --config /etc/hbase/conf start regionserver"

then run "jps" (as root user too).

if you see "HMaster" and "HRegionServer", your hbase is now on.

"hbase shell" again to see if it works.




回答2:


It seems you did not start or even configured HBase in the VM. go into the ambari management console and install/activate HBase




回答3:


I have faced same problem in my system:

Root cause: its due to when creating table its point to HDFS namenode (port 9000) Connection refused problem

I just formatted the namenode also check connectivity to port 9000 (but its not good in production real time)

$hadoop namenode format

after that #start-all.sh

$(HBASE_HOME)/bin/start-hbase.sh

Start habse shell

Problem will resolve.




回答4:


Had same issue, solved by restarting HBase server manually from the browser.




回答5:


in my case,I forget to start ZooKeeper first,

./zkServer.sh start

so I start the ZooKeeper and then restart the hbase:

./stop-hbase.sh

./start-hbase.sh



来源:https://stackoverflow.com/questions/24207493/hbase-on-hortonworks-hdp-sandbox-cant-get-master-address-from-zookeeper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!