-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
128 lines (118 loc) · 2.4 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
version: "2.2"
services:
hivemetastoredb:
image: mysql:8.0.16
hostname: hivemetastoredb
container_name: hivemetastoredb
cpus: 0.50
mem_limit: 1g
mem_reservation: 1g
volumes:
- ./data/hivemetastoredb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=mysql
ports:
- "53306:3306"
namenode:
build: ./namenode
hostname: namenode
cpus: 0.25
mem_limit: 500m
mem_reservation: 500m
container_name: namenode
volumes:
- ./data/namenode:/hdfsdata
environment:
- CLUSTER_NAME=test
ports:
- "59870:9870"
resourcemanager:
build: ./resourcemanager
hostname: resourcemanager
cpus: 0.25
mem_limit: 500m
mem_reservation: 500m
container_name: resourcemanager
depends_on:
- "namenode"
links:
- "namenode"
ports:
- "58088:8088"
datanode1:
build: ./datanode
hostname: datanode1
container_name: datanode1
cpus: 0.5
mem_limit: 500m
mem_reservation: 500m
depends_on:
- "namenode"
links:
- "namenode"
volumes:
- ./data/datanode1:/hdfsdata
datanode2:
build: ./datanode
hostname: datanode2
cpus: 0.5
mem_limit: 500m
mem_reservation: 500m
container_name: datanode2
depends_on:
- "namenode"
links:
- "namenode"
volumes:
- ./data/datanode2:/hdfsdata
datanode3:
build: ./datanode
hostname: datanode3
cpus: 0.5
mem_limit: 500m
mem_reservation: 500m
container_name: datanode3
depends_on:
- "namenode"
links:
- "namenode"
volumes:
- ./data/datanode3:/hdfsdata
nodemanager1:
build: ./nodemanager
hostname: nodemanager1
cpus: 1.0
mem_limit: 4g
mem_reservation: 4g
depends_on:
- "resourcemanager"
links:
- "resourcemanager"
ports:
- "58042:8042"
nodemanager2:
build: ./nodemanager
hostname: nodemanager2
container_name: nodemanager2
cpus: 1.0
mem_limit: 4g
mem_reservation: 4g
depends_on:
- "resourcemanager"
links:
- "resourcemanager"
ports:
- "58043:8042"
nodemanager3:
build: ./nodemanager
hostname: nodemanager3
container_name: nodemanager3
cpus: 1.0
mem_limit: 4g
mem_reservation: 4g
depends_on:
- "resourcemanager"
links:
- "resourcemanager"
ports:
- "58044:8042"