-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.yarn.yml
44 lines (40 loc) · 987 Bytes
/
docker-compose.yarn.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
version: '3.8'
services:
spark-yarn-master:
container_name: da-spark-yarn-master
build:
dockerfile: Dockerfile-yarn
context: .
image: da-spark-yarn-image
entrypoint: ['./entrypoint.sh', 'master']
volumes:
- ./book_data:/opt/spark/data
- ./spark_apps:/opt/spark/apps
env_file:
- .env.spark
ports:
- '9090:8080'
- '9870:9870'
- '7077:7077'
- '8088:8088'
spark-yarn-worker:
# container_name: da-spark-worker
image: da-spark-yarn-image
entrypoint: ['./entrypoint.sh', 'worker']
depends_on:
- spark-yarn-master
env_file:
- .env.spark
volumes:
- ./book_data:/opt/spark/data
- ./spark_apps:/opt/spark/apps
yarn-history-server:
container_name: da-spark-yarn-history
image: da-spark-yarn-image
entrypoint: ['./entrypoint.sh', 'history']
depends_on:
- spark-yarn-master
env_file:
- .env.spark
ports:
- '18080:18080'