forked from big-data-europe/docker-hadoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-3dn.yml
132 lines (124 loc) · 2.69 KB
/
docker-compose-3dn.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
version: '3.8'
services:
namenode:
build:
context: ./namenode
container_name: namenode
restart: on-failure
ports:
- 9870:9870
- 9000:9000
- 80:9870
volumes:
- hadoop_namenode:/hadoop/dfs/name
environment:
- CLUSTER_NAME=test
env_file:
- ./hadoop.env
datanode1:
build:
context: ./datanode
container_name: datanode1
hostname: datanode1
restart: on-failure
ports:
- 9866:9866
- 9864:9864
volumes:
- hadoop_datanode1:/hadoop/dfs/data
environment:
SERVICE_PRECONDITION: "namenode:9870"
env_file:
- ./hadoop.env
depends_on:
- namenode
datanode2:
build:
context: ./datanode
container_name: datanode2
hostname: datanode2
restart: on-failure
ports:
- 9867:9866
- 9863:9864
volumes:
- hadoop_datanode2:/hadoop/dfs/data
environment:
SERVICE_PRECONDITION: "namenode:9870"
env_file:
- ./hadoop.env
depends_on:
- namenode
datanode3:
build:
context: ./datanode
container_name: datanode3
hostname: datanode3
restart: on-failure
ports:
- 9868:9866
- 9862:9864
volumes:
- hadoop_datanode3:/hadoop/dfs/data
environment:
SERVICE_PRECONDITION: "namenode:9870"
env_file:
- ./hadoop.env
depends_on:
- namenode
resourcemanager:
build:
context: ./resourcemanager
container_name: resourcemanager
restart: on-failure
ports:
- 8088:8088
environment:
SERVICE_PRECONDITION: "namenode:9870 datanode1:9864 datanode2:9864 datanode3:9864"
env_file:
- ./hadoop.env
depends_on:
- namenode
- datanode1
- datanode2
- datanode3
nodemanager:
build:
context: ./nodemanager
container_name: nodemanager
restart: on-failure
environment:
SERVICE_PRECONDITION: "namenode:9870 datanode1:9864 datanode2:9864
datanode3:9864 resourcemanager:8088"
env_file:
- ./hadoop.env
depends_on:
- namenode
- datanode1
- datanode2
- datanode3
historyserver:
build:
context: ./historyserver
container_name: historyserver
restart: on-failure
ports:
- 8188:8188
environment:
SERVICE_PRECONDITION: "namenode:9870 datanode1:9864 datanode2:9864
datanode3:9864 resourcemanager:8088"
volumes:
- hadoop_historyserver:/hadoop/yarn/timeline
env_file:
- ./hadoop.env
depends_on:
- namenode
- datanode1
- datanode2
- datanode3
volumes:
hadoop_namenode: null
hadoop_datanode1: null
hadoop_datanode2: null
hadoop_datanode3: null
hadoop_historyserver: null