Search code examples
network-programminghbasedockerrpc

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?


Solution

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