forked from big-data-europe/docker-hadoop
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
94 lines (86 loc) · 1.94 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
version: "2.1"
services:
namenode:
image: ${SOURCE}hadoop-namenode:${RELEASE}
container_name: namenode
volumes:
- hadoop_namenode:/hadoop/dfs/name
environment:
- CLUSTER_NAME=test
env_file:
- ./hadoop.env
ports:
- "9870:9870"
resourcemanager:
image: ${SOURCE}hadoop-resourcemanager:${RELEASE}
container_name: resourcemanager
restart: on-failure
depends_on:
- namenode
- datanode1
- datanode2
- datanode3
env_file:
- ./hadoop.env
ports:
- "8089:8088"
historyserver:
image: ${SOURCE}hadoop-historyserver:${RELEASE}
container_name: historyserver
depends_on:
- namenode
- datanode1
- datanode2
volumes:
- hadoop_historyserver:/hadoop/yarn/timeline
env_file:
- ./hadoop.env
ports:
- "8188:8188"
nodemanager1:
image: ${SOURCE}hadoop-nodemanager:${RELEASE}
container_name: nodemanager1
depends_on:
- namenode
- datanode1
- datanode2
env_file:
- ./hadoop.env
ports:
- "8042:8042"
volumes:
- ${PWD}/dish-config.json:/opt/dish/pash/cluster.json
- ${PWD}/sample-script.sh:/opt/dish/sample.sh
datanode1:
image: ${SOURCE}hadoop-datanode:${RELEASE}
container_name: datanode1
depends_on:
- namenode
volumes:
- hadoop_datanode1:/hadoop/dfs/data
env_file:
- ./hadoop.env
datanode2:
image: ${SOURCE}hadoop-datanode:${RELEASE}
container_name: datanode2
depends_on:
- namenode
volumes:
- hadoop_datanode2:/hadoop/dfs/data
env_file:
- ./hadoop.env
datanode3:
image: ${SOURCE}hadoop-datanode:${RELEASE}
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: