forked from junk16/spark-yarn-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.32 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
namenode:
image: jun16/spark-yarn-cluster
container_name: namenode
hostname: namenode
ports:
- "8088:8088"
- "9000:9000"
- "50990:50990"
command: "/etc/bootstrap.sh -d -namenode"
datanode01:
image: jun16/spark-yarn-cluster
container_name: datanode01
links:
- "namenode:namenode"
# ports:
# - "50070:50070"
hostname: datanode01
# dns: "docker inspect --format=\"{{ .NetworkSettings.IPAddress }}\" namenode"
command: "/etc/bootstrap.sh -d -datanode01"
datanode02:
image: jun16/spark-yarn-cluster
container_name: datanode02
links:
- "namenode:namenode"
# ports:
# - "50070:50070"
hostname: datanode02
# dns: "docker inspect --format=\"{{ .NetworkSettings.IPAddress }}\" namenode"
command: "/etc/bootstrap.sh -d -datanode02"
datanode03:
image: jun16/spark-yarn-cluster
container_name: datanode03
links:
- "namenode:namenode"
# ports:
# - "50070:50070"
hostname: datanode01
# dns: "docker inspect --format=\"{{ .NetworkSettings.IPAddress }}\" namenode"
command: "/etc/bootstrap.sh -d -datanode03"
spark:
image: jun16/spark-yarn-cluster
container_name: spark
links:
- "namenode:namenode"
ports:
- "4040:4040"
# - "50070:50070"
hostname: spark
# dns: "docker inspect --format=\"{{ .NetworkSettings.IPAddress }}\" namenode"
command: "/etc/bootstrap.sh -d"