-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
143 lines (131 loc) · 3.41 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
version: "3.5"
services:
namenode:
image: bde2020/hadoop-namenode:2.0.0-hadoop3.1.1-java8
container_name: namenode
hostname: namenode
networks:
- yarn-cluster
volumes:
- hadoop_namenode:/hadoop/dfs/name
- ./data:/data:rw
- ./cluster/scripts:/scripts:rw
environment:
- CLUSTER_NAME=dev
ports:
- 9870:9870
- 9000:9000
env_file:
- ./cluster/conf/hadoop.env
datanode:
image: bde2020/hadoop-datanode:2.0.0-hadoop3.1.1-java8
container_name: datanode
hostname: datanode
networks:
- yarn-cluster
volumes:
- hadoop_datanode:/hadoop/dfs/data
environment:
SERVICE_PRECONDITION: "namenode:9870"
ports:
- 9864:9864
env_file:
- ./cluster/conf/hadoop.env
resourcemanager:
image: s4ni0r/resourcemanager:3.1.1
container_name: resourcemanager
hostname: resourcemanager
networks:
- yarn-cluster
volumes:
- hadoop_conf:/etc/hadoop
environment:
SERVICE_PRECONDITION: "namenode:9870 datanode:9864"
MALLOC_ARENA_MAX: "1"
ports:
- 8088:8088
env_file:
- ./cluster/conf/hadoop.env
nodemanager-1:
image: s4ni0r/nodemanager:3.1.1
container_name: nodemanager-1
hostname: nodemanager-1
networks:
- yarn-cluster
environment:
SERVICE_PRECONDITION: "namenode:9870 datanode:9864 resourcemanager:8088"
YARN_CONF_yarn_nodemanager_webapp_address: "0.0.0.0:8041"
ports:
- "8041:8041"
env_file:
- ./cluster/conf/hadoop.env
nodemanager-2:
image: s4ni0r/nodemanager:3.1.1
container_name: nodemanager-2
hostname: nodemanager-2
networks:
- yarn-cluster
environment:
SERVICE_PRECONDITION: "namenode:9870 datanode:9864 resourcemanager:8088"
YARN_CONF_yarn_nodemanager_webapp_address: "0.0.0.0:8042"
ports:
- "8042:8042"
env_file:
- ./cluster/conf/hadoop.env
nodemanager-3:
image: s4ni0r/nodemanager:3.1.1
container_name: nodemanager-3
hostname: nodemanager-3
networks:
- yarn-cluster
environment:
SERVICE_PRECONDITION: "namenode:9870 datanode:9864 resourcemanager:8088"
YARN_CONF_yarn_nodemanager_webapp_address: "0.0.0.0:8043"
ports:
- "8043:8043"
env_file:
- ./cluster/conf/hadoop.env
historyserver:
image: bde2020/hadoop-historyserver:2.0.0-hadoop3.1.1-java8
container_name: historyserver
hostname: historyserver
networks:
- yarn-cluster
environment:
SERVICE_PRECONDITION: "namenode:9870 datanode:9864 resourcemanager:8088"
ports:
- 8188:8188
volumes:
- hadoop_historyserver:/hadoop/yarn/timeline
env_file:
- ./cluster/conf/hadoop.env
spark-history:
image: s4ni0r/spark-history:2.3.2
container_name: spark-history
hostname: spark-history
networks:
- yarn-cluster
ports:
- 18080:18080
env_file:
- ./cluster/conf/hadoop.env
spark-shell:
image: s4ni0r/spark-shell:2.3.2
container_name: spark-shell
hostname: spark-shell
networks:
- yarn-cluster
environment:
MALLOC_ARENA_MAX: "1"
YARN_CONF_resourcemanager_address: "resourcemanager:8032"
YARN_CONF_yarn_nodemanager_vmem__check__enabled: "false"
env_file:
- ./cluster/conf/hadoop.env
volumes:
hadoop_namenode:
hadoop_datanode:
hadoop_historyserver:
hadoop_conf:
networks:
yarn-cluster:
name: yarn-cluster