hbase-docker icon indicating copy to clipboard operation
hbase-docker copied to clipboard

How to connect hbase in OSX?

Open morefreeze opened this issue 8 years ago • 1 comments

I change 'hbase.zookeeper.quorum' of hbase-site.xml to $(docker-machine ip default):2181, but when I join hbase shell and type list, it output following:

2015-12-01 16:40:43,538 INFO  [main] ipc.RpcClient: Retrying connect to server: 61f329846777/61.50.248.117:44555 after sleeping 100ms. Already tried 0 time(s).
2015-12-01 16:41:03,648 INFO  [main] ipc.RpcClient: Retrying connect to server: 61f329846777/61.50.248.117:44555 after sleeping 100ms. Already tried 1 time(s).

61f3 is container id. And I try python code which has same problem. How to connect zk correctly?

morefreeze avatar Dec 01 '15 09:12 morefreeze

I actually add docker-machine ip to /etc/hosts as dockerhost and use it in hbase-site.xml

morefreeze avatar Dec 01 '15 09:12 morefreeze