-
Notifications
You must be signed in to change notification settings - Fork 695
/
Copy pathdocker-compose.yml
48 lines (46 loc) · 1.05 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
version: "2.1"
services:
namenode:
image: bde2020/hadoop-namenode:1.1.0-hadoop2.7.1-java8
container_name: namenode
volumes:
- ./data/namenode:/hadoop/dfs/name
environment:
- CLUSTER_NAME=test
env_file:
- ./hadoop-hive.env
datanode:
image: bde2020/hadoop-datanode:1.1.0-hadoop2.7.1-java8
container_name: datanode
volumes:
- ./data/datanode:/hadoop/dfs/data
env_file:
- ./hadoop-hive.env
depends_on:
namenode:
condition: service_healthy
spark-master:
build: ./master
container_name: spark-master
ports:
- "8080:8080"
- "7077:7077"
env_file:
- ./hadoop-hive.env
depends_on:
namenode:
condition: service_healthy
datanode:
condition: service_healthy
spark-worker:
build: ./worker
container_name: spark-worker
environment:
- "SPARK_MASTER=spark://spark-master:7077"
ports:
- "8081:8081"
env_file:
- ./hadoop-hive.env
depends_on:
spark-master:
condition: service_healthy