-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
executable file
·61 lines (59 loc) · 1.17 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
services:
master:
build:
context: ./master
target: spark-master
command: sbin/start-master.sh
init: true
hostname: master
environment:
MASTER: spark://master:7077
SPARK_CONF_DIR: /conf
SPARK_NO_DAEMONIZE: true
SPARK_PUBLIC_DNS: localhost
expose:
- 7001
- 7002
- 7077
- 6066
ports:
- 4040:4040
- 6066:6066
- 7077:7077
- 8080:8080
- 8888:8888
volumes:
- ./conf/master:/conf
- ./data:/tmp/data
networks:
- spark_network
worker:
build:
context: ./master
target: spark
command: sbin/start-worker.sh spark://master:7077
init: true
depends_on:
- master
hostname: worker
environment:
SPARK_CONF_DIR: /conf
SPARK_NO_DAEMONIZE: true
SPARK_PUBLIC_DNS: localhost
SPARK_WORKER_CORES: 2
SPARK_WORKER_MEMORY: 2g
SPARK_WORKER_PORT: 8881
SPARK_WORKER_WEBUI_PORT: 8081
expose:
- 7012
- 8881
ports:
- 8081:8081
volumes:
- ./conf/worker:/conf
- ./data:/tmp/data
networks:
- spark_network
networks:
spark_network:
driver: bridge