Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run HBase inside docker container

I'm trying to setup HBase easily with docker. I have writen the Dockerfile and run standalone-hbase successfully.

Everything works like a charm within the container. I can implement the Java client to get data from RegionServer as well. But when I move the client outside the container, it doesn't work.

RegionServer seems to open random ports for RPC requests but we can't expose them after running the docker container. I have no idea how to solve it, any suggestion?

like image 681
tobe Avatar asked Nov 09 '22 22:11

tobe


1 Answers

It works like a charm when I start the container with --net host.

like image 85
tobe Avatar answered Nov 15 '22 05:11

tobe