Skip to content

YiSoEasy/docker-hbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Distributed HBase Cluster within Docker Containers

alt tag

3 Nodes HBase Cluster

1. pull/build docker image
sudo docker pull yisoeasy/hbase:latest

you can also run command below to build image after step2: 
sudo docker build -t yisoeasy/hbase:latest .
2. clone github repository
git clone https://github.com/YiSoEasy/docker-hbase.git
3. start container
chmod +x start.sh
./start.sh

**output:**
.....
start hadoop-master container...
start hadoop-slave1 container...
start hadoop-slave2 container...
root@hadoop-master:~# 

- start 3 containers with 1 master and 2 slaves
- you will get into the /root directory of hadoop-master container
4. test hadoop and hbase
cd ~/cluter/cluster_test
./mapreduce-wordcount.sh 	#run mapreduce job
./hbase-test.sh 	#run hbase pe tool
5. limitations
1. These code can run multiple hbase containers in distributed mode 
on only single host. I am now working on how to depoly multiple hbase containers
on multiple nodes using Kubernetes

2. Because of the docker network issues, we need to take care of hbase-site.xml.
Try to ping hadoop-slave1 from hadoop-master, you can see the real hadoop-slave1 
hostname, you can see the real host name have following format:
[$container-name.$network-name]
Specify hbase.regionserver.hostname in hbase-site.xml, see HBASE-12954
For details, see conf/hbase_conf/hbaseSet.sh

About

Run distributed hbase on docker container.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages