Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No need for changing hosts file + expose ports on run command #23

Open
jonatasbaldin opened this issue Feb 8, 2018 · 0 comments
Open

Comments

@jonatasbaldin
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant