Public | Automated Build

Last pushed: 3 months ago
Short Description
hadoop cluster
Full Description

hadoop-docker

为集群创建桥接网络

docker network create --driver=bridge nw_hadoop

创建并启动容器

docker run -itd \
--net=nw_hadoop \
-p 50070:50070 \
-p 8088:8088 \
--name hadoop-master \
--hostname hadoop-master \
harrycao/hadoop

docker run -itd \
--net=nw_hadoop \
--name hadoop-slave1 \
--hostname hadoop-slave1 \
harrycao/hadoop

docker run -itd \
--net=nw_hadoop \
--name hadoop-slave2 \
--hostname hadoop-slave2 \
harrycao/hadoop

启动hadoop

  • 登入master节点:docker exec -it hadoop-master bash
  • 启动hdfsyarn
    # start-dfs.sh
    # start-yarn.sh
    

通过浏览器访问

Docker Pull Command
Owner
harrycao
Source Repository

Comments (0)