tobe
tobe

Reputation: 1741

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?

Upvotes: 6

Views: 5039

Answers (1)

tobe
tobe

Reputation: 1741

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

Upvotes: 2

Related Questions