-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
81 lines (73 loc) · 1.71 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
version: "2"
services:
namenode:
image: dtspence/hadoop-namenode:compose-0.3.0-cdh6.2.0
container_name: namenode
volumes:
- hadoop_namenode:/hadoop/dfs/name
environment:
- CLUSTER_NAME=test
env_file:
- ./hadoop.env
resourcemanager:
image: dtspence/hadoop-resourcemanager:compose-0.3.0-cdh6.2.0
container_name: resourcemanager
depends_on:
- namenode
- datanode1
- datanode2
env_file:
- ./hadoop.env
historyserver:
image: dtspence/hadoop-historyserver:compose-0.3.0-cdh6.2.0
container_name: historyserver
ports:
- "19888"
depends_on:
- namenode
- datanode1
- datanode2
env_file:
- ./hadoop.env
nodemanager1:
image: dtspence/hadoop-nodemanager:compose-0.3.0-cdh6.2.0
container_name: nodemanager1
depends_on:
- namenode
- datanode1
- datanode2
env_file:
- ./hadoop.env
datanode1:
image: dtspence/hadoop-datanode:compose-0.3.0-cdh6.2.0
container_name: datanode1
depends_on:
- namenode
volumes:
- hadoop_datanode1:/hadoop/dfs/data
env_file:
- ./hadoop.env
datanode2:
image: dtspence/hadoop-datanode:compose-0.3.0-cdh6.2.0
container_name: datanode2
depends_on:
- namenode
volumes:
- hadoop_datanode2:/hadoop/dfs/data
env_file:
- ./hadoop.env
datanode3:
image: dtspence/hadoop-datanode:compose-0.3.0-cdh6.2.0
container_name: datanode3
depends_on:
- namenode
volumes:
- hadoop_datanode3:/hadoop/dfs/data
env_file:
- ./hadoop.env
volumes:
hadoop_namenode:
hadoop_datanode1:
hadoop_datanode2:
hadoop_datanode3:
hadoop_historyserver: