-
Notifications
You must be signed in to change notification settings - Fork 2
/
spark-local.yml
executable file
·107 lines (100 loc) · 2.12 KB
/
spark-local.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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '3.1'
services:
jupyter:
build:
context: ./jupyter
dockerfile: Dockerfile
args:
http_proxy:
https_proxy:
ftp_proxy:
ALMOND_VERSION: 0.8.2
SCALA_VERSIONS: 2.12.8
image: ${DOCKER_NOTEBOOK_IMAGE}
container_name: jupyter
hostname: jupyter
ports:
- "10000:8888"
- "4040:4040"
environment:
- JUPYTER_ENABLE_LAB=yes
volumes:
- jupyter-work:/home/jovyan/work
namenode:
image: platform-ds/hadoop-namenode:2.0.0-hadoop3.1.1-java8
container_name: namenode
build:
context: ./namenode
dockerfile: Dockerfile
args:
http_proxy:
https_proxy:
ftp_proxy:
volumes:
- "namenode:/hadoop/dfs/name"
environment:
- CLUSTER_NAME=test
env_file:
- .env
ports:
- 9870:9870
- 9000:9000
- 50070:50070
datanode-1:
image: platform-ds/hadoop-datanode:2.0.0-hadoop3.1.1-java8
build:
context: ./datanode
dockerfile: Dockerfile
args:
http_proxy:
https_proxy:
ftp_proxy:
container_name: datanode-1
depends_on:
- namenode
volumes:
- "datanode-1:/hadoop/dfs/data"
env_file:
- .env
ports:
- 9871:9864
- 50071:50075
datanode-2:
image: platform-ds/hadoop-datanode:2.0.0-hadoop3.1.1-java8
build:
context: ./datanode
dockerfile: Dockerfile
args:
http_proxy:
https_proxy:
ftp_proxy:
container_name: datanode-2
depends_on:
- namenode
volumes:
- "datanode-2:/hadoop/dfs/data"
env_file:
- .env
ports:
- 9872:9864
- 50072:50075
resourcemanager:
depends_on:
- namenode
image: bde2020/hadoop-resourcemanager:2.0.0-hadoop3.1.2-java8
container_name: resourcemanager
environment:
SERVICE_PRECONDITION: "namenode:9870 datanode-1:9864 datanode-2:9864"
env_file:
- .env
ports:
- 8088:8088
volumes:
datanode-1:
datanode-2:
namenode:
jupyter-work:
networks:
default:
external:
name: ${DOCKER_NETWORK_NAME}