forked from big-data-europe/docker-hadoop
-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
102 lines (95 loc) · 2.38 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
version: "3"
services:
namenode:
image: wxwmatt/hadoop-namenode:2.1.1-hadoop3.3.1-java8
build:
context: namenode
dockerfile: Dockerfile
container_name: namenode
restart: always
ports:
- 9870:9870
- 9000:9000
volumes:
- hadoop_namenode:/hadoop/dfs/name
- ./jobs:/app
working_dir: /app
environment:
- CLUSTER_NAME=test
- HOME=/app
- SPARK_HOME=/usr/local/lib/python3.7/dist-packages/pyspark
- HIVE_HOME=/hive/apache-hive-3.1.3-bin
env_file:
- ./hadoop.env
datanode:
image: wxwmatt/hadoop-datanode:2.1.1-hadoop3.3.1-java8
build:
context: datanode
dockerfile: Dockerfile
container_name: datanode
restart: always
ports:
- 9864:9864
volumes:
- hadoop_datanode:/hadoop/dfs/data
environment:
SERVICE_PRECONDITION: "namenode:9870"
env_file:
- ./hadoop.env
resourcemanager:
image: wxwmatt/hadoop-resourcemanager:2.1.1-hadoop3.3.1-java8
build:
context: resourcemanager
dockerfile: Dockerfile
container_name: resourcemanager
restart: always
ports:
- 8088:8088
environment:
SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864"
env_file:
- ./hadoop.env
nodemanager1:
image: wxwmatt/hadoop-nodemanager:2.1.1-hadoop3.3.1-java8
build:
context: nodemanager
dockerfile: Dockerfile
container_name: nodemanager
restart: always
ports:
- 8042:8042
environment:
SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864 resourcemanager:8088"
env_file:
- ./hadoop.env
historyserver:
image: wxwmatt/hadoop-historyserver:2.1.1-hadoop3.3.1-java8
build:
context: historyserver
dockerfile: Dockerfile
container_name: historyserver
restart: always
ports:
- 8188:8188
environment:
SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864 resourcemanager:8088"
volumes:
- hadoop_historyserver:/hadoop/yarn/timeline
env_file:
- ./hadoop.env
postgres:
image: postgres:latest
container_name: postgres13
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
- ./jobs:/app
ports:
- '5432:5432'
env_file:
- ./postgres.env
volumes:
hadoop_namenode:
hadoop_datanode:
hadoop_historyserver:
postgres_data: