I have loaded the exact same image on Ubuntu using Docker and it works there but on MAC it doesn't seem to be working.
- Steps followed:
- docker start sandbox
- login to sandbox
- /etc/init.d/startup_scripts start
- sh /root/start_hbase.sh
- echo "list" | hbase shell (or hbase shell -> list)
From the list command, the error is always "ERROR: Can't get master address from ZooKeeper; znode data == null"
I have followed all the other links here checking the conf/*XML, on docker port forwarding, running zookeeper independently and let hbase manage zookeeper
Kafka on the same docker can connect to zookeeper at port 2181
hbase master start -> says it connected to zookeeper
<code>2017-01-26 01:11:46,134 INFO [sandbox:16000.activeMasterManager-SendThread(localhost:2181)] zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
2017-01-26 01:11:46,137 INFO [sandbox:16000.activeMasterManager-SendThread(localhost:2181)] zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
After this, master process waits for region server (count to settle), when I do a
hbase regionserver start master gets killed (no reason specified), region server goes on to complain it cant report to master.
I have tried both zookeeper as individual (outside hbase) - this works with kafka. Stopped the zookeeper and let hbase manage it's own zookeeper - both cases hbase isnt' starting correctly due to which hbase client complains about zookeeper. I am starting to think it's not zookeeper related
hbase zookeeper start I can use
hbase zkcli and get connected to zookeeper. But when I do a hbase master start the same thing happens that I have mentioned earlier.
Although it might not help, I forwarded the port 2181 on docker and changed sandbox.hortonworks.com domain to localhost in the site.xml (one of few ways I was trying and listed down all the things I tried)
This is out of the box config that works in Linux and not in MAC as I have mentioned earlier. If anyone has faced similar issues please let me know.