-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
175 lines (175 loc) · 3.5 KB
/
docker-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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
---
version: '3'
services:
master:
image: bachmann/spark-hdfs
command: "/usr/local/bin/boot master"
hostname: master
container_name: spark-hdfs-cluster-master
environment:
SPARK_CONF_DIR: "/conf/spark"
SPARK_PUBLIC_DNS: localhost
MASTER: spark://master:7077
networks:
- hadoop
expose:
- 7001
- 7002
- 7003
- 7004
- 7005
- 7006
- 7077
- 6066
- 50090
- 8020
- 9000
- 22
ports:
- 8080:8080
- 50070:50070
volumes:
- "./data:/tmp/data"
- "./application:/application"
- "./conf/master:/conf"
worker-1:
image: bachmann/spark-hdfs
command: "/usr/local/bin/boot worker"
hostname: worker-1
container_name: spark-hdfs-cluster-worker-1
environment:
SPARK_CONF_DIR: "/conf/spark"
SPARK_PUBLIC_DNS: localhost
SPARK_WORKER_CORES: 2
SPARK_WORKER_MEMORY: 8g
SPARK_WORKER_PORT: 8881
SPARK_WORKER_WEBUI_PORT: 8081
networks:
- hadoop
expose:
- 7012
- 7013
- 7014
- 7015
- 7016
- 8881
- 50010
- 50020
- 50075
- 22
ports:
- 8081:8081
volumes:
- "./data:/tmp/data"
- "./application:/application"
- "./conf/worker:/conf"
worker-2:
image: bachmann/spark-hdfs
command: "/usr/local/bin/boot worker"
hostname: worker-2
container_name: spark-hdfs-cluster-worker-2
environment:
SPARK_CONF_DIR: "/conf/spark"
SPARK_PUBLIC_DNS: localhost
SPARK_WORKER_CORES: 2
SPARK_WORKER_MEMORY: 8g
SPARK_WORKER_PORT: 8881
SPARK_WORKER_WEBUI_PORT: 8082
networks:
- hadoop
expose:
- 7012
- 7013
- 7014
- 7015
- 7016
- 8881
- 50010
- 50020
- 50075
- 22
ports:
- 8082:8082
volumes:
- "./data:/tmp/data"
- "./application:/application"
- "./conf/worker:/conf"
worker-3:
image: bachmann/spark-hdfs
command: "/usr/local/bin/boot worker"
hostname: worker-3
container_name: spark-hdfs-cluster-worker-3
environment:
SPARK_CONF_DIR: "/conf/spark"
SPARK_PUBLIC_DNS: localhost
SPARK_WORKER_CORES: 2
SPARK_WORKER_MEMORY: 8g
SPARK_WORKER_PORT: 8881
SPARK_WORKER_WEBUI_PORT: 8083
networks:
- hadoop
expose:
- 7012
- 7013
- 7014
- 7015
- 7016
- 8881
- 50010
- 50020
- 50075
- 22
ports:
- 8083:8083
volumes:
- "./data:/tmp/data"
- "./application:/application"
- "./conf/worker:/conf"
worker-4:
image: bachmann/spark-hdfs
command: "/usr/local/bin/boot worker"
hostname: worker-4
container_name: spark-hdfs-cluster-worker-4
environment:
SPARK_CONF_DIR: "/conf/spark"
SPARK_PUBLIC_DNS: localhost
SPARK_WORKER_CORES: 2
SPARK_WORKER_MEMORY: 8g
SPARK_WORKER_PORT: 8881
SPARK_WORKER_WEBUI_PORT: 8084
networks:
- hadoop
expose:
- 7012
- 7013
- 7014
- 7015
- 7016
- 8881
- 50010
- 50020
- 50075
- 22
ports:
- 8084:8084
volumes:
- "./data:/tmp/data"
- "./application:/application"
- "./conf/worker:/conf"
helper:
image: bachmann/spark-hdfs
command: "/usr/local/bin/boot helper"
hostname: helper
container_name: spark-hdfs-cluster-helper
environment:
SPARK_CONF_DIR: "/conf/spark"
SPARK_PUBLIC_DNS: localhost
networks:
- hadoop
ports:
- 4040:4040
volumes:
- "./data:/tmp/data"
- "./application:/application"
networks:
hadoop: