-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
171 lines (167 loc) · 3.67 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
version: '2'
services:
hadoop-namenode:
container_name: hadoop-namenode
image: 'aiurtech/hadoop-namenode:0.8.2'
networks:
privnet:
ipv4_address: 172.15.0.2
#volumes:
#- namenode:/hadoop/dfs/name
ports:
- 8020:8020
- 50070:50070
hostname: hadoop-namenode
# cpus: '2'
mem_limit: 500m
mem_reservation: 300m
hadoop-datanode:
container_name: hadoop-datanode
image: 'aiurtech/hadoop-datanode:0.8.2'
networks:
privnet:
ipv4_address: 172.15.0.20
#volumes:
#- datanode:/hadoop/dfs/data
ports:
- 50010:50010
- 50075:50075
hostname: hadoop-datanode
#cpus: '2'
mem_limit: 600m
mem_reservation: 300m
depends_on:
- hadoop-namenode
yarn-resourcemanager:
container_name: yarn-resourcemanager
image: 'aiurtech/yarn-resourcemanager:0.8.2'
networks:
privnet:
ipv4_address: 172.15.0.3
ports:
- 8030:8030
- 8031:8031
- 8032:8032
- 8033:8033
- 8088:8088
hostname: yarn-resourcemanager
# cpus: '2'
mem_limit: 500m
mem_reservation: 300m
yarn-nodemanager:
container_name: yarn-nodemanager
image: 'aiurtech/yarn-nodemanager:0.8.2'
networks:
privnet:
ipv4_address: 172.15.0.4
ports:
- 8042:8042
hostname: yarn-nodemanager
mem_limit: 2400m
mem_reservation: 300m
depends_on:
- yarn-resourcemanager
hive-metastore-postgresql:
container_name: hive-metastore-postgresql
image: 'aiurtech/hive-metastore-postgresql:0.8.2'
networks:
privnet:
ipv4_address: 172.15.0.5
ports:
- 5432:5432
hostname: hive-metastore-postgresql
# cpus: '2'
mem_limit: 500m
mem_reservation: 300m
hive-metastore:
container_name: hive-metastore
image: 'aiurtech/hive-metastore:0.8.2'
networks:
privnet:
ipv4_address: 172.15.0.10
ports:
- 9083:9083
hostname: hive-metastore
# cpus: '2'
mem_limit: 600m
mem_reservation: 300m
depends_on:
- hive-metastore-postgresql
hive:
container_name: hive
image: 'aiurtech/hive:0.8.2'
networks:
privnet:
ipv4_address: 172.15.0.11
ports:
- 10001:10001
hostname: hive
# cpus: '2'
mem_limit: 1000m
mem_reservation: 300m
depends_on:
- hive-metastore-postgresql
- hive-metastore
- hadoop-namenode
- spark-master
spark-master:
container_name: spark-master
image: 'aiurtech/spark-master:0.8.2'
networks:
privnet:
ipv4_address: 172.15.0.30
ports:
- 6066:6066
- 7077:7077
- 9090:9090
hostname: spark-master
# cpus: '2'
mem_limit: 600m
mem_reservation: 300m
depends_on:
- hadoop-namenode
- hadoop-datanode
- hive-metastore-postgresql
- hive-metastore
spark-historyserver:
container_name: spark-historyserver
image: 'aiurtech/spark-historyserver:0.8.2'
networks:
privnet:
ipv4_address: 172.15.0.31
ports:
- 18080:18080
hostname: spark-historyserver
# cpus: '0.50'
mem_limit: 500m
mem_reservation: 300m
depends_on:
- hadoop-namenode
- hadoop-datanode
- spark-master
spark-worker:
container_name: spark-worker
image: 'aiurtech/spark-worker:0.8.2'
networks:
privnet:
ipv4_address: 172.15.0.40
ports:
- 8081:8081
hostname: spark-worker
# cpus: '4'
mem_limit: 2000m
mem_reservation: 500m
depends_on:
- hadoop-namenode
- hadoop-datanode
- spark-master
networks:
privnet:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.15.0.0/24
#volumes:
# namenode:
# datanode: