-
Notifications
You must be signed in to change notification settings - Fork 12
/
services.yarn.yml.tpl
63 lines (59 loc) · 1.85 KB
/
services.yarn.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
59
60
61
62
63
version: "2"
services:
## resourcemanager
resourcemanager-${i}:
container_name: resourcemanager-${i}
networks: ["${network_name}"]
hostname: resourcemanager-${i}.${network_name}
image: smizy/hadoop-base:2.7.4-alpine
expose: ["8030-8033"]
ports: ["8088"]
environment:
- SERVICE_8088_NAME=resourcemanager
- SERVICE_8030_IGNORE=true
- SERVICE_8031_IGNORE=true
- SERVICE_8032_IGNORE=true
- SERVICE_8033_IGNORE=true
- HADOOP_ZOOKEEPER_QUORUM=${ZOOKEEPER_QUORUM}
- HADOOP_NAMENODE_HA=${NAMENODE_HA}
- YARN_HEAPSIZE=1000
${SWARM_FILTER_RESOURCEMANAGER_${i}}
entrypoint: entrypoint.sh
command: resourcemanager-${i}
##/ resourcemanager
## historyserver
historyserver-${i}:
container_name: historyserver-${i}
networks: ["${network_name}"]
hostname: historyserver-${i}.${network_name}
image: smizy/hadoop-base:2.7.4-alpine
expose: ["10020"]
ports: ["19888:19888"]
environment:
- SERVICE_19888_NAME=historyserver
- SERVICE_10020_IGNORE=true
- HADOOP_ZOOKEEPER_QUORUM=${ZOOKEEPER_QUORUM}
- HADOOP_HEAPSIZE=1000
- HADOOP_NAMENODE_HA=${NAMENODE_HA}
${SWARM_FILTER_HISTORYSERVER_${i}}
entrypoint: entrypoint.sh
command: historyserver-${i}
##/ historyserver
## nodemanager
nodemanager-${i}:
container_name: nodemanager-${i}
networks: ["${network_name}"]
hostname: nodemanager-${i}.${network_name}
image: smizy/hadoop-base:2.7.4-alpine
expose: ["8040-8042"]
environment:
- SERVICE_8042_NAME=nodemanager
- SERVICE_8040_IGNORE=true
- SERVICE_8041_IGNORE=true
- HADOOP_ZOOKEEPER_QUORUM=${ZOOKEEPER_QUORUM}
- HADOOP_NAMENODE_HA=${NAMENODE_HA}
- YARN_HEAPSIZE=1000
${SWARM_FILTER_NODEMANAGER_${i}}
entrypoint: entrypoint.sh
command: nodemanager
##/ nodemanager