Skip to content

liubin/docker-hbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published