-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
90 lines (83 loc) · 1.74 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
version: '3'
services:
master:
image: fdiblen/spark-master-dirac
hostname: sparkmaster
networks:
spark-net:
aliases:
- sparkmaster
- spark-master
deploy:
mode: global
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 2
window: 120s
ports:
- "8080:8080"
- "7077:7077"
env_file:
- ./cluster.env
volumes:
- "/home/fdiblen/nlesc/projects/dirac/excon_hdfs:/opt/dirac/excon_hdfs"
worker:
image: fdiblen/spark-worker-dirac
hostname: sparkworker{{.Task.Slot}}
depends_on:
- master
networks:
spark-net:
aliases:
- sparkworker{{.Task.Slot}}
environment:
- SPARK_MASTER=spark://sparkmaster:7077
deploy:
replicas: 4
mode: replicated
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 2
window: 120s
ports:
- "8081:8081"
env_file:
- ./cluster.env
volumes:
- "/home/fdiblen/nlesc/projects/dirac/excon_hdfs:/opt/dirac/excon_hdfs"
hadoop:
image: fdiblen/hadoop
hostname: hadoop
networks:
spark-net:
aliases:
- hadoop
environment:
- IMAGE=hadoop
deploy:
mode: global
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 2
window: 120s
ports:
- "50070:50070"
- "50075:50075"
- "8088:8088"
- "9000:9000"
- "8020:8020"
# - "50030:50030"
# - "9870:9870"
# - "50030:50030"
# - "50010:50010"
# - "50020:50020"
# - "50090:50090"
env_file:
- ./cluster.env
networks:
spark-net:
# driver: "bridge"
external: true