-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
147 lines (140 loc) · 2.99 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: '3.2'
services:
namenode:
image: esitull/stack-hadoop-docker:namenode
hostname: namenode
networks:
- hadoop2
volumes:
- namenode1:/hadoop/dfs/name
environment:
- CLUSTER_NAME=cluster1
env_file:
- ./hadoop.env
ports:
- 50070:50070
logging:
options:
max-size: 50m
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
datanode:
image: esitull/stack-hadoop-docker:datanode
networks:
- hadoop2
volumes:
- datanode1:/hadoop/dfs/data
environment:
- CORE_CONF_fs_defaultFS=hdfs://namenode:8020
env_file:
- ./hadoop.env
deploy:
mode: global
restart_policy:
condition: on-failure
resourcemanager:
image: esitull/stack-hadoop-docker:resourcemanager
hostname: resourcemanager
## command: tail -f /var/log/dmesg
networks:
- hadoop2
env_file:
- ./hadoop.env
environment:
- CORE_CONF_fs_defaultFS=hdfs://namenode:8020
#- YARN_CONF_yarn_log___aggregation___enable=true
ports:
- target: 8030
published: 8030
mode: host
- target: 8032
published: 8032
mode: host
- target: 8088
published: 8088
mode: host
# ports:
# - 8030:8030
# - 8032:8032
# - 8088:8088
logging:
options:
max-size: 50m
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
nodemanager:
image: esitull/stack-hadoop-docker:nodemanager
depends_on:
- resourcemanager
networks:
- hadoop2
env_file:
- ./hadoop.env
ports:
- 8042:8042
logging:
options:
max-size: 50m
deploy:
mode: global
#replicas: 6
restart_policy:
condition: on-failure
spark:
image: esitull/stack-hadoop-docker:spark
hostname: spark
volumes:
- datosspark:/datos
networks:
- hadoop2
env_file:
- ./hadoop.env
#environment:
#- CORE_CONF_fs_defaultFS=hdfs://namenode:8020
# - YARN_CONF_yarn_resourcemanager_hostname=resourcemanager
ports:
- "2222:22"
logging:
options:
max-size: 50m
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
command: tail -f /var/log/dmesg
gatk:
image: esitull/stack-hadoop-docker:gatk
hostname: gatk
volumes:
- datosspark:/datos
networks:
- hadoop2
env_file:
- ./hadoop.env
#environment:
#- CORE_CONF_fs_defaultFS=hdfs://namenode:8020
# - YARN_CONF_yarn_resourcemanager_hostname=resourcemanager
ports:
- "2223:22"
logging:
options:
max-size: 50m
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
command: tail -f /var/log/dmesg
volumes:
namenode1:
datanode1:
datosspark:
networks:
hadoop2: