forked from kiwenlau/hadoop-cluster-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
42 lines (41 loc) · 998 Bytes
/
compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3' #第三个版本
services:
MS:
image: aoian5173/hadoop5173:latest
command: ./start-hadoop.sh
container_name: hadoop-master
environment:
- JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
- HADOOP_HOME=/usr/local/hadoop
privileged: true
ports:
- 8088:8088
- 50070:50070
networks:
hadoop:
ipv4_address: 172.10.10.10
S1:
image: aoian5173/hadoop5173:latest
container_name: hadoop-slave1
environment:
- JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
- HADOOP_HOME=/usr/local/hadoop
privileged: true
networks:
hadoop:
S2:
image: aoian5173/hadoop5173:latest
container_name: hadoop-slave2
environment:
- JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
- HADOOP_HOME=/usr/local/hadoop
privileged: true
networks:
hadoop:
networks:
hadoop:
driver: bridge
ipam:
config:
- subnet: 172.10.10.0/24
gateway: 172.10.10.1