-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml.hdfs
85 lines (76 loc) · 1.36 KB
/
docker-compose.yml.hdfs
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
master:
image: hadoop:v1
command: bin/hdfs --config /usr/hadoop/etc/hadoop namenode
hostname: master
environment:
HADOOP_PUBLIC_DNS: master
expose:
- 50010
- 50020
- 50070
- 50075
- 50090
- 8020
- 9000
ports:
- 50070:50070
volumes:
- /root/hadoop/dfs/name:/root/hadoop/dfs/name
slave1:
image: hadoop:v1
command: bin/hdfs --config /usr/hadoop/etc/hadoop datanode
hostname: slave1
environment:
dfs.datanode.dns.nameserver: master
links:
- master
expose:
- 50010
- 50020
- 50070
- 50075
- 50090
- 8020
- 9000
ports:
- 50075:50075
volumes:
- /root/hadoop/dfs/data1:/root/hadoop/dfs/data
slave2:
image: hadoop:v1
command: bin/hdfs --config /usr/hadoop/etc/hadoop datanode
hostname: slave2
environment:
dfs.datanode.dns.nameserver: master
links:
- master
expose:
- 50010
- 50020
- 50070
- 50075
- 50090
- 8020
- 9000
ports:
- 50076:50075
volumes:
- /root/hadoop/dfs/data2:/root/hadoop/dfs/data
secondName:
image: hadoop:v1
command: bin/hdfs --config /usr/hadoop/etc/hadoop secondarynamenode
hostname: secondName
environment:
dfs.datanode.dns.nameserver: master
links:
- master
expose:
- 50010
- 50020
- 50070
- 50075
- 50090
- 8020
- 9000
ports:
- 50090:50090