-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-spark.yml
executable file
·34 lines (34 loc) · 1.02 KB
/
docker-compose-spark.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
services:
spark:
build: ./spark
command: ["spark-class", "org.apache.spark.deploy.master.Master"]
environment:
- SPARK_WORKER_MEMORY=8g
- AWS_ACCESS_KEY_ID=sparkaccesskey
- AWS_SECRET_ACCESS_KEY=sparksupersecretkey
- AWS_REGION=us-east-1
- AWS_ENDPOINT_URL=http://minio:9000
- PYSPARK_PYTHON=python3
- PYSPARK_DRIVER_PYTHON=python3
- SPARK_YARN_USER_ENV="PYSPARK_PYTHON=python3"
ports:
- '8099:8080'
- '7077:7077'
volumes:
- ./data:/data
spark-worker:
build: ./spark
command: ["spark-class", "org.apache.spark.deploy.worker.Worker", "spark://spark:7077"]
environment:
- SPARK_WORKER_MEMORY=8g
- AWS_ACCESS_KEY_ID=sparkaccesskey
- AWS_SECRET_ACCESS_KEY=sparksupersecretkey
- AWS_REGION=us-east-1
- AWS_ENDPOINT_URL=http://minio:9000
- PYSPARK_PYTHON=python3
- PYSPARK_DRIVER_PYTHON=python3
- SPARK_YARN_USER_ENV="PYSPARK_PYTHON=python3"
volumes:
- ./data:/data
ports:
- 8098:8081