Created
September 9, 2021 15:30
-
-
Save vndee/7c2d7113b273ade0e89de5d58f17b04c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.6" | |
volumes: | |
shared-workspace: | |
name: "hadoop-distributed-file-system" | |
driver: local | |
services: | |
jupyterlab: | |
image: jupyterlab | |
container_name: jupyterlab | |
ports: | |
- 8888:8888 | |
- 4040:4040 | |
networks: | |
- spark-network | |
volumes: | |
- shared-workspace:/opt/workspace | |
spark-master: | |
image: spark-master | |
container_name: spark-master | |
ports: | |
- 8080:8080 | |
- 7077:7077 | |
networks: | |
- spark-network | |
volumes: | |
- shared-workspace:/opt/workspace | |
spark-worker-1: | |
image: spark-worker | |
container_name: spark-worker-1 | |
environment: | |
- SPARK_WORKER_CORES=2 | |
- SPARK_WORKER_MEMORY=2g | |
ports: | |
- 8081:8081 | |
networks: | |
- spark-network | |
volumes: | |
- shared-workspace:/opt/workspace | |
depends_on: | |
- spark-master | |
spark-worker-2: | |
image: spark-worker | |
container_name: spark-worker-2 | |
environment: | |
- SPARK_WORKER_CORES=2 | |
- SPARK_WORKER_MEMORY=2g | |
ports: | |
- 8082:8081 | |
networks: | |
- spark-network | |
volumes: | |
- shared-workspace:/opt/workspace | |
depends_on: | |
- spark-master | |
networks: | |
spark-network: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment