Giter Club home page Giter Club logo

hbase-docker's Introduction

hbase-docker

Apache HBase (standalone) for development and testing.

The image is available from Docker Hub at mckdev/hbase.

Image tags and HBase versions

The version of HBase in the image is indicated by the image tag, which corresponds to the git tag of an HBase release.

Accessing HBase from outside the Docker network

HBase connections are bootstrapped with metadata discovered in Zookeeper. The docker-compose.yml provided in this repository maps both Zookeeper and HBase ports to localhost equivalents, but your applications will need to resolve the HBase server's hostname to your localhost in order to connect.

It is not possible to override the hostname that is advertised by HBase in Zookeeper. HBase will discover the hostname on which it is running, and use this hostname when registering with Zookeeper. When running HBase inside a container, the hostname will (by default) be randomized, and hard to work with. I recommend setting a hostname manually, via --hostname <HOST> (for docker run) or hostname: <HOST> (for docker-compose).

Add a loopback entry for the HBase hostname in /etc/hosts, such as 127.0.0.1 <HOST>. This will allow applications running on your localhost to connect to HBase running within a container.

hbase-docker's People

Contributors

cartermckinnon avatar cmckn avatar

Stargazers

 avatar

Watchers

 avatar  avatar

hbase-docker's Issues

Change hbase.regionserver.thrift.framed to True for security?

Thanks for providing the container! I am doing a research aiming at finding issues in configuration files. After pulling your image we notice that hbase.regionserver.thrift.framed is set to False in the configuration file.

However, the HBase official document and Cloudera troubleshooting page recommends to set hbase.regionserver.thrift.framed and hbase.regionserver.thrift.compact to True for security:

  • This is the recommended transport for thrift servers and requires a similar setting on the client side. Changing this to false will select the default transport, vulnerable to DoS when malformed requests are issued due to THRIFT-601.

  • To prevent the possibility of crashes due to buffer overruns, use the framed and compact transport protocols by setting hbase.regionserver.thrift.framed and hbase.regionserver.thrift.compact to true in hbase-site.xml.

Maybe it's better to enable these two parameters? Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.