forked from YotpoLtd/metorikku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (71 loc) · 1.91 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
version: '3'
services:
spark-submit:
image: metorikku/metorikku
container_name: spark-submit
ports:
- "4040:4040"
environment:
- SPARK_MASTER_HOST=spark-master
- SPARK_MASTER_PORT=7077
- SPARK_WEBUI_PORT=8080
- SPARK_UI_PORT=4040
- MIN_WORKERS=2
- MAX_RETRIES=300
- SUBMIT_COMMAND=spark-submit --class com.yotpo.metorikku.Metorikku metorikku.jar -c examples/movies.yaml
- JSON_LOG=true
- JSON_LOG_LEVEL=WARN
- GRAPHITE_HOST=graphite.local
- GRAPHITE_PORT=3001
entrypoint:
- /scripts/entrypoint-submit.sh
spark-master:
image: metorikku/metorikku
container_name: spark-master
ports:
- "8080:8080"
- "7077:7077"
- "6066:6066"
environment:
- SPARK_MASTER_HOST=spark-master
- SPARK_MASTER_PORT=7077
- SPARK_WEBUI_PORT=8080
- JSON_LOG=true
- GRAPHITE_HOST=graphite.local
- GRAPHITE_PORT=3001
entrypoint:
- /scripts/entrypoint-master.sh
spark-worker-1:
image: metorikku/metorikku
container_name: spark-worker-1
ports:
- "7078:7078"
- "8081:8081"
environment:
- SPARK_MASTER_HOST=spark-master
- SPARK_MASTER_PORT=7077
- SPARK_WORKER_PORT=7078
- SPARK_WORKER_WEBUI_PORT=8081
- OUTPUT_EXECUTOR_LOGS_TO_STDOUT=true
- JSON_LOG=true
- GRAPHITE_HOST=graphite.local
- GRAPHITE_PORT=3001
entrypoint:
- /scripts/entrypoint-worker.sh
spark-worker-2:
image: metorikku/metorikku
container_name: spark-worker-2
ports:
- "7079:7079"
- "8082:8082"
environment:
- SPARK_MASTER_HOST=spark-master
- SPARK_MASTER_PORT=7077
- SPARK_WORKER_PORT=7079
- SPARK_WORKER_WEBUI_PORT=8082
- OUTPUT_EXECUTOR_LOGS_TO_STDOUT=true
- JSON_LOG=true
- GRAPHITE_HOST=graphite.local
- GRAPHITE_PORT=3001
entrypoint:
- /scripts/entrypoint-worker.sh