hadoop-cluster-docker

Run Hadoop Custer within Docker Containers

  • 所有者: kiwenlau/hadoop-cluster-docker
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Run Hadoop Cluster within Docker Containers

alt tag

3 Nodes Hadoop Cluster

1. pull docker image
sudo docker pull kiwenlau/hadoop:1.0
2. clone github repository
git clone https://github.com/kiwenlau/hadoop-cluster-docker
3. create hadoop network
sudo docker network create --driver=bridge hadoop
4. start container
cd hadoop-cluster-docker
sudo ./start-container.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
5. start hadoop
./start-hadoop.sh
6. run wordcount
./run-wordcount.sh

output

input file1.txt:
Hello Hadoop

input file2.txt:
Hello Docker

wordcount output:
Docker    1
Hadoop    1
Hello    2

Arbitrary size Hadoop cluster

1. pull docker images and clone github repository

do 1~3 like section A

2. rebuild docker image
sudo ./resize-cluster.sh 5
  • specify parameter > 1: 2, 3..
  • this script just rebuild hadoop image with different slaves file, which pecifies the name of all slave nodes
3. start container
sudo ./start-container.sh 5
  • use the same parameter as the step 2
4. run hadoop cluster

do 5~6 like section A

主要指标

概览
名称与所有者kiwenlau/hadoop-cluster-docker
主编程语言Shell
编程语言Shell (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2015-05-21 12:15:22
推送于2024-07-01 21:01:04
最后一次提交2017-06-07 09:19:44
发布数1
最新版本名称0.1.0 (发布于 )
第一版名称0.1.0 (发布于 )
用户参与
星数1.8k
关注者数89
派生数863
提交数88
已启用问题?
问题数70
打开的问题数40
拉请求数5
打开的拉请求数8
关闭的拉请求数8
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?