-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1.16 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
# KAFKA
kafka :
container_name: kafka
image : spotify/kafka
ports:
- "9092:9092"
- "2181:2181"
volumes:
- ./kafka:/home/kafka
environment:
- TOPICS=open-data-orange
- ADVERTISED_HOST=kafka
- ADVERTISED_PORT=9092
# HDFS
hdfs-namenode:
container_name: hdfs-namenode
image: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8
environment:
- CLUSTER_NAME=odbo-cluster
env_file:
- ./hadoop.env
ports:
- "50070:50070"
- "9000:9000"
datanode:
image: bde2020/hadoop-datanode:2.0.0-hadoop2.7.4-java8
env_file:
- ./hadoop.env
environment:
SERVICE_PRECONDITION: "hdfs-namenode:50070"
# SPARK
spark-master:
image: bde2020/spark-master:2.3.0-hadoop2.7
container_name: spark-master
ports:
- "8080:8080"
- "7077:7077"
environment:
- INIT_DAEMON_STEP=setup_spark
- HOSTNAME_NAMENODE=hdfs-namenode:9000
spark-worker:
image: bde2020/spark-worker:2.3.0-hadoop2.7
container_name: spark-worker-1
depends_on:
- spark-master
ports:
- "8081:8081"
environment:
- "SPARK_MASTER=spark://spark-master:7077"