-
Notifications
You must be signed in to change notification settings - Fork 80
/
docker-compose.yml
212 lines (205 loc) · 4.97 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
version: "3.7"
services:
hivemetastore:
image: postgres:11.5
hostname: hivemetastore
environment:
POSTGRES_PASSWORD: new_password
expose:
- 5432
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
spark_net:
ipv4_address: 172.28.1.4
extra_hosts:
- "master:172.28.1.1"
- "worker1:172.28.1.2"
- "worker2:172.28.1.3"
- "zeppelin:172.28.1.5"
- "livy:172.28.1.6"
master:
image: panovvv/hadoop-hive-spark:2.5.2
# build: '../hadoop-hive-spark-docker'
hostname: master
depends_on:
- hivemetastore
environment:
HADOOP_NODE: namenode
HIVE_CONFIGURE: yes, please
SPARK_PUBLIC_DNS: localhost
SPARK_LOCAL_IP: 172.28.1.1
SPARK_MASTER_HOST: 172.28.1.1
SPARK_LOCAL_HOSTNAME: master
expose:
- 1-65535
ports:
# Spark Master Web UI
- 8080:8080
# Spark job Web UI: increments for each successive job
- 4040:4040
- 4041:4041
- 4042:4042
- 4043:4043
# Spark History server
- 18080:18080
# YARN UI
- 8088:8088
# Hadoop namenode UI
- 9870:9870
# Hadoop secondary namenode UI
- 9868:9868
# Hive JDBC
- 10000:10000
volumes:
- ./data:/data
networks:
spark_net:
ipv4_address: 172.28.1.1
extra_hosts:
- "worker1:172.28.1.2"
- "worker2:172.28.1.3"
- "hivemetastore:172.28.1.4"
- "zeppelin:172.28.1.5"
- "livy:172.28.1.6"
worker1:
image: panovvv/hadoop-hive-spark:2.5.2
# build: '../hadoop-hive-spark-docker'
hostname: worker1
depends_on:
- hivemetastore
environment:
SPARK_MASTER_ADDRESS: spark://master:7077
SPARK_WORKER_PORT: 8881
SPARK_WORKER_WEBUI_PORT: 8081
SPARK_PUBLIC_DNS: localhost
SPARK_LOCAL_HOSTNAME: worker1
SPARK_LOCAL_IP: 172.28.1.2
SPARK_MASTER_HOST: 172.28.1.1
HADOOP_NODE: datanode
expose:
- 1-65535
ports:
# Hadoop datanode UI
- 9864:9864
#Spark worker UI
- 8081:8081
volumes:
- ./data:/data
networks:
spark_net:
ipv4_address: 172.28.1.2
extra_hosts:
- "master:172.28.1.1"
- "worker2:172.28.1.3"
- "hivemetastore:172.28.1.4"
- "zeppelin:172.28.1.5"
- "livy:172.28.1.6"
worker2:
image: panovvv/hadoop-hive-spark:2.5.2
# build: '../hadoop-hive-spark-docker'
hostname: worker2
depends_on:
- hivemetastore
environment:
SPARK_MASTER_ADDRESS: spark://master:7077
SPARK_WORKER_PORT: 8882
SPARK_WORKER_WEBUI_PORT: 8082
SPARK_PUBLIC_DNS: localhost
SPARK_LOCAL_HOSTNAME: worker2
SPARK_LOCAL_IP: 172.28.1.3
SPARK_MASTER_HOST: 172.28.1.1
HADOOP_NODE: datanode
HADOOP_DATANODE_UI_PORT: 9865
expose:
- 1-65535
ports:
# Hadoop datanode UI
- 9865:9865
# Spark worker UI
- 8082:8082
volumes:
- ./data:/data
networks:
spark_net:
ipv4_address: 172.28.1.3
extra_hosts:
- "master:172.28.1.1"
- "worker1:172.28.1.2"
- "hivemetastore:172.28.1.4"
- "zeppelin:172.28.1.5"
- "livy:172.28.1.6"
livy:
image: panovvv/livy:2.5.2
# build: '../livy-docker'
hostname: livy
depends_on:
- master
- worker1
- worker2
volumes:
- ./livy_batches:/livy_batches
- ./data:/data
environment:
- SPARK_MASTER=yarn
# Intentionally not specified - if it's set here, then we can't override it
# via REST API ("conf"={} map)
# Can be client or cluster
# - SPARK_DEPLOY_MODE=client
- LOCAL_DIR_WHITELIST=/data/batches/
- ENABLE_HIVE_CONTEXT=false
# Defaults are fine for variables below. Uncomment to change them.
# - LIVY_HOST=0.0.0.0
# - LIVY_PORT=8998
expose:
- 1-65535
ports:
- 8998:8998
networks:
spark_net:
ipv4_address: 172.28.1.6
extra_hosts:
- "master:172.28.1.1"
- "worker1:172.28.1.2"
- "worker2:172.28.1.3"
- "hivemetastore:172.28.1.4"
- "zeppelin:172.28.1.5"
zeppelin:
image: panovvv/zeppelin-bigdata:2.5.2
# build: '../zeppelin-bigdata-docker'
hostname: zeppelin
depends_on:
- master
- worker1
- worker2
- livy
volumes:
- ./zeppelin_notebooks:/zeppelin_notebooks
- ./data:/data
environment:
ZEPPELIN_PORT: 8890
ZEPPELIN_NOTEBOOK_DIR: '/zeppelin_notebooks'
expose:
- 8890
ports:
- 8890:8890
networks:
spark_net:
ipv4_address: 172.28.1.5
extra_hosts:
- "master:172.28.1.1"
- "worker1:172.28.1.2"
- "worker2:172.28.1.3"
- "hivemetastore:172.28.1.4"
- "livy:172.28.1.6"
networks:
spark_net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16