Sign inSign up

liubin/hbase

By liubin

•Updated about 9 years ago

HBase HA ✖ HDFS HA

Image
1

273

liubin/hbase repository overview

⁠HBase image for Docker

⁠How to build

make build

⁠Full distributed mode

Start master:

docker run -d --net=host --name=hbase-master -e HBASE_ROOTDIR=hdfs://ns1/hbase -e ZOOKEEPER_QUORUM=10.0.0.4:2181 -e NN_NGINX_LIST=10.0.0.4:9090,10.0.0.5:9090 -v /data/hbase:/hbase -e MODE=master liubin/hbase:1.2.6

Start backup master(optional):

docker run -d --net=host --name=hbase-backup -e HBASE_ROOTDIR=hdfs://ns1:8020/hbase -e ZOOKEEPER_QUORUM=10.0.0.4:2181 -e NN_NGINX_LIST=10.0.0.4:9090,10.0.0.5:9090 -v /data/hbase:/hbase -e MODE=master liubin/hbase:1.2.6

Start region server:

docker run -d --net=host --name=hbase-region -e HBASE_ROOTDIR=hdfs://ns1:8020/hbase -e ZOOKEEPER_QUORUM=10.0.0.4:2181 -e NN_NGINX_LIST=10.0.0.4:9090,10.0.0.5:9090 -v /data/hbase:/hbase -e MODE=regionserver liubin/hbase:1.2.6

⁠Standalone mode

All in one container(ZK,HBase, for dev only)

docker run -d --net=host --name=hbase-standalone -e COMPRESSION=NONE -e MODE=standalone liubin/hbase:1.2.6

⁠About OpenTSDB tables

This HBase is mainly used for OpenTSDB, if you run it with -e OPENTSDB_ENTABLED=true, all OpenTSDB tables will be created.

And you can also set -e TTL=1209600 (default 1209600) to tsdb table for reduce disk space.

Tag summary

Content type

Image

Digest

Size

143.3 MB

Last updated

about 9 years ago

docker pull liubin/hbase:1.2.6