Run HBase inside docker container

I am trying to setup HBase easily with docker. I wrote a Dockerfile and did the standalone hbase successfully.

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

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

+3


source to share


1 answer


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

.



0


source







All Articles