-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-spark_cluster.yml
46 lines (46 loc) · 1.19 KB
/
docker-compose-spark_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
version: '2'
services:
spark-master:
image: bde2020/spark-master:3.2.0-hadoop3.2
container_name: spark-master
ports:
- "8180:8080"
- "7177:7077"
- "4140:4040"
volumes:
- /D/Docker/wsl/volumes/spark:/data
environment:
- INIT_DAEMON_STEP=setup_spark
spark-worker-1:
image: bde2020/spark-worker:3.2.0-hadoop3.2
container_name: spark-worker-1
depends_on:
- spark-master
ports:
- "8181:8081"
volumes:
- /D/Docker/wsl/volumes/spark:/data
environment:
- "SPARK_MASTER=spark://spark-master:7077"
spark-worker-2:
image: bde2020/spark-worker:3.2.0-hadoop3.2
container_name: spark-worker-2
depends_on:
- spark-master
ports:
- "8182:8081"
volumes:
- /D/Docker/wsl/volumes/spark:/data
environment:
- "SPARK_MASTER=spark://spark-master:7077"
spark-worker-3:
image: bde2020/spark-worker:3.2.0-hadoop3.2
container_name: spark-worker-3
depends_on:
- spark-master
ports:
- "8183:8081"
volumes:
- /D/Docker/wsl/volumes/spark:/data
environment:
- "SPARK_MASTER=spark://spark-master:7077"