-
Notifications
You must be signed in to change notification settings - Fork 12
/
services.hdfs.yml.tpl
58 lines (54 loc) · 1.62 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
56
57
58
version: "2"
services:
## journalnode
journalnode-${i}:
container_name: journalnode-${i}
networks: ["${network_name}"]
hostname: journalnode-${i}.${network_name}
image: smizy/hadoop-base:2.7.4-alpine
expose: [8480, 8485]
environment:
- SERVICE_8485_NAME=journalnode
- SERVICE_8480_IGNORE=true
- HADOOP_ZOOKEEPER_QUORUM=${ZOOKEEPER_QUORUM}
- HADOOP_HEAPSIZE=1000
- HADOOP_NAMENODE_HA=${NAMENODE_HA}
${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.4-alpine
expose: ["8020"]
ports: ["50070"]
environment:
- SERVICE_8020_NAME=namenode
- SERVICE_50070_IGNORE=true
- HADOOP_ZOOKEEPER_QUORUM=${ZOOKEEPER_QUORUM}
- HADOOP_HEAPSIZE=1000
- HADOOP_NAMENODE_HA=${NAMENODE_HA}
${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.4-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
- HADOOP_NAMENODE_HA=${NAMENODE_HA}
${SWARM_FILTER_DATANODE_${i}}
entrypoint: entrypoint.sh
command: datanode
##/ datanode