Skip to content

Instantly share code, notes, and snippets.

@cordon-thiago
Last active January 3, 2021 18:12
Show Gist options
  • Save cordon-thiago/237ef82593ac2439986cf288255f7016 to your computer and use it in GitHub Desktop.
Save cordon-thiago/237ef82593ac2439986cf288255f7016 to your computer and use it in GitHub Desktop.
spark-worker-n:
image: bitnami/spark:3.0.1
networks:
- default_net
environment:
- SPARK_MODE=worker
- SPARK_MASTER_URL=spark://spark:7077
- SPARK_WORKER_MEMORY=1G
- SPARK_WORKER_CORES=1
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
volumes:
- ../spark/app:/usr/local/spark/app # Spark scripts folder (Must be the same path in airflow and Spark Cluster)
- ../spark/resources/data:/usr/local/spark/resources/data #Data folder (Must be the same path in airflow and Spark Cluster)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment