-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-cluster.yml
97 lines (97 loc) · 1.97 KB
/
docker-compose-cluster.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# e.g
version: "2.4"
networks:
hadoop-cluster:
name: hadoop-cluster-1
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.10.0/24
# 'gateway' available only for version '2.*' (remove this line)
gateway: 192.168.10.254
services:
master:
build: .
container_name: hdp-master-1
image: debian:hadoop-master
tty: true
networks:
hadoop-cluster:
ipv4_address: 192.168.10.1
volumes:
- /var/log/hadoop:/opt/hadoop/logs
- /var/local/hadoop:/root/shared
ports:
- "8030:8030"
- "8032:8032"
- "8033:8033"
- "8042:8042"
- "8047:8047"
- "8088:8088"
- "8188:8188"
- "8788:8788"
- "9000:9000"
- "9870:9870"
- "10033:10033"
- "19888:19888"
- "50030:50030"
- "50060:50060"
- "50070:50070"
- "50075:50075"
slave-1:
build: .
container_name: slave-1
image: debian:hadoop-slave
tty: true
networks:
hadoop-cluster:
ipv4_address: 192.168.10.2
volumes:
- /var/log/hadoop:/opt/hadoop/logs
- /var/local/hadoop:/root/shared
ports:
- "8030:8030"
- "8032:8032"
- "8033:8033"
- "8042:8042"
- "8047:8047"
- "8088:8088"
- "8188:8188"
- "8788:8788"
- "9000:9000"
- "9870:9870"
- "10033:10033"
- "19888:19888"
- "50030:50030"
- "50060:50060"
- "50070:50070"
- "50075:50075"
slave-2:
build: .
container_name: slave-2
image: debian:hadoop-slave
tty: true
networks:
hadoop-cluster:
ipv4_address: 192.168.10.3
volumes:
- /var/log/hadoop:/opt/hadoop/logs
- /var/local/hadoop:/root/shared
ports:
- "8030:8030"
- "8032:8032"
- "8033:8033"
- "8042:8042"
- "8047:8047"
- "8088:8088"
- "8188:8188"
- "8788:8788"
- "9000:9000"
- "9870:9870"
- "10033:10033"
- "19888:19888"
- "50030:50030"
- "50060:50060"
- "50070:50070"
- "50075:50075"