-
Notifications
You must be signed in to change notification settings - Fork 24
/
spark-compose.yml
40 lines (35 loc) · 975 Bytes
/
spark-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
version: '3.5'
services:
master:
build: ./spark/spark_master
image: rspark-sparkmaster
ports:
- "7077:7077"
- "8080:8080" # Master Web UI
worker1:
image: rspark-sparkmaster
command: bin/spark-class org.apache.spark.deploy.worker.Worker spark://master:7077
environment:
SPARK_CONF_DIR: /conf
SPARK_WORKER_CORES: 1
SPARK_WORKER_MEMORY: 2g
depends_on:
- master
worker2:
image: rspark-sparkmaster
command: bin/spark-class org.apache.spark.deploy.worker.Worker spark://master:7077
environment:
SPARK_CONF_DIR: /conf
SPARK_WORKER_CORES: 1
SPARK_WORKER_MEMORY: 2g
depends_on:
- master
worker3:
image: rspark-sparkmaster
command: bin/spark-class org.apache.spark.deploy.worker.Worker spark://master:7077
environment:
SPARK_CONF_DIR: /conf
SPARK_WORKER_CORES: 1
SPARK_WORKER_MEMORY: 2g
depends_on:
- master