-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
126 lines (125 loc) · 2.72 KB
/
docker-compose.yml
File metadata and controls
126 lines (125 loc) · 2.72 KB
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
x-hdd-image: &hdd-image hdd/hadoop-base
x-hdd-volumes: &hdd-volumes
- ./config/capacity-scheduler.xml:/opt/hadoop/etc/hadoop/capacity-scheduler.xml
- ./config/core-site.xml:/opt/hadoop/etc/hadoop/core-site.xml
- ./config/hdfs-site.xml:/opt/hadoop/etc/hadoop/hdfs-site.xml
- ./config/mapred-site.xml:/opt/hadoop/etc/hadoop/mapred-site.xml
- ./config/yarn-site.xml:/opt/hadoop/etc/hadoop/yarn-site.xml
version: "3.7"
services:
namenode:
env_file:
- env/hdd-hdfs.env
image: *hdd-image
hostname: namenode
container_name: namenode
volumes: *hdd-volumes
ports:
- "9870:9870"
command:
- "sh"
- "/run-server.sh"
- "nn"
datanode-1:
env_file:
- env/hdd-hdfs.env
image: *hdd-image
hostname: datanode-1
container_name: datanode-1
volumes: *hdd-volumes
depends_on:
- namenode
command:
- "sh"
- "/run-server.sh"
- "dn"
datanode-2:
env_file:
- env/hdd-hdfs.env
image: *hdd-image
hostname: datanode-2
container_name: datanode-2
volumes: *hdd-volumes
depends_on:
- namenode
command:
- "sh"
- "/run-server.sh"
- "dn"
datanode-3:
env_file:
- env/hdd-hdfs.env
image: *hdd-image
hostname: datanode-3
container_name: datanode-3
volumes: *hdd-volumes
depends_on:
- namenode
command:
- "sh"
- "/run-server.sh"
- "dn"
secondarynamenode:
env_file:
- env/hdd-hdfs.env
image: *hdd-image
hostname: secondarynamenode
container_name: secondarynamenode
volumes: *hdd-volumes
command:
- "sh"
- "/run-server.sh"
- "2nn"
resourcemanager:
env_file:
- env/hdd-yarn.env
image: *hdd-image
hostname: resourcemanager
container_name: resourcemanager
volumes: *hdd-volumes
ports:
- "8088:8088"
command:
- "sh"
- "/run-server.sh"
- "rm"
nodemanager-1:
env_file:
- env/hdd-yarn.env
image: *hdd-image
hostname: nodemanager-1
container_name: nodemanager-1
volumes: *hdd-volumes
depends_on:
- resourcemanager
command:
- "sh"
- "/run-server.sh"
- "nm"
nodemanager-2:
env_file:
- env/hdd-yarn.env
image: *hdd-image
hostname: nodemanager-2
container_name: nodemanager-2
volumes: *hdd-volumes
depends_on:
- resourcemanager
command:
- "sh"
- "/run-server.sh"
- "nm"
historyserver:
env_file:
- env/hdd-yarn.env
- env/hdd-hdfs.env
image: *hdd-image
hostname: historyserver
container_name: historyserver
volumes: *hdd-volumes
ports:
- "19888:19888"
command:
- "sh"
- "/run-server.sh"
- "jh"