As specified in the HBase Book, since version hbase-0.96.0 there's no need to change the /etc/hosts file.
Also, to access the the container ports from your machine, you should expose the ports to the host. This can be done in two ways:
-
On the docker run command, such as (exposing just 16010):
docker run --name=hbase-docker --rm -p 16010:16010 -d -v $PWD/data:/data dajobe/hbase
-
On the Dockerfile:
EXPOSE 16010:16010
I got it working skipping the /etc/hosts configuration and running the command above.
What do you think?
As specified in the HBase Book, since version
hbase-0.96.0there's no need to change the/etc/hostsfile.Also, to access the the container ports from your machine, you should expose the ports to the host. This can be done in two ways:
On the
docker runcommand, such as (exposing just 16010):docker run --name=hbase-docker --rm -p 16010:16010 -d -v $PWD/data:/data dajobe/hbaseOn the Dockerfile:
EXPOSE 16010:16010I got it working skipping the
/etc/hostsconfiguration and running the command above.What do you think?