-
Notifications
You must be signed in to change notification settings - Fork 15
/
services.hdfs.yml.tpl
55 lines (51 loc) · 1.49 KB
/
services.hdfs.yml.tpl
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
version: "2"
services:
## journalnode
journalnode-${i}:
container_name: journalnode-${i}
networks: ["${network_name}"]
hostname: journalnode-${i}.${network_name}
image: smizy/hadoop-base:2.7.7-alpine
expose: [8480, 8485]
environment:
- SERVICE_8485_NAME=journalnode
- SERVICE_8480_IGNORE=true
- HADOOP_ZOOKEEPER_QUORUM=${ZOOKEEPER_QUORUM}
- HADOOP_HEAPSIZE=1000
${SWARM_FILTER_JOURNALNODE_${i}}
command: journalnode
##/ journalnode
## namenode
namenode-${i}:
container_name: namenode-${i}
networks: ["${network_name}"]
hostname: namenode-${i}.${network_name}
image: smizy/hadoop-base:2.7.7-alpine
expose: ["8020"]
ports: ["50070"]
environment:
- SERVICE_8020_NAME=namenode
- SERVICE_50070_IGNORE=true
- HADOOP_ZOOKEEPER_QUORUM=${ZOOKEEPER_QUORUM}
- HADOOP_HEAPSIZE=1000
${SWARM_FILTER_NAMENODE_${i}}
entrypoint: entrypoint.sh
command: namenode-${i}
##/ namenode
## datanode
datanode-${i}:
container_name: datanode-${i}
networks: ["${network_name}"]
hostname: datanode-${i}.${network_name}
image: smizy/hadoop-base:2.7.7-alpine
expose: ["50010", "50020", "50075"]
environment:
- SERVICE_50010_NAME=datanode
- SERVICE_50020_IGNORE=true
- SERVICE_50075_IGNORE=true
- HADOOP_ZOOKEEPER_QUORUM=${ZOOKEEPER_QUORUM}
- HADOOP_HEAPSIZE=1000
${SWARM_FILTER_DATANODE_${i}}
entrypoint: entrypoint.sh
command: datanode
##/ datanode