Local Spark Dev Env with Docker

Development environment for k8s.

Using the spark-operator image to ensure it will be the same environment.

Start container

docker-compose up -d

Copy dependencies jars

docker cp jars/. spark:/opt/spark/jars

Create a local alias for spark-submit

alias spark-s="docker exec -it spark /opt/spark/bin/spark-submit"

Run exemple

spark-s app_3.py

Clean after work

docker-compose down


GitHub - otacilio-psf/spark-dev-env-docker: Spark development environment for k8s
Spark development environment for k8s. Contribute to otacilio-psf/spark-dev-env-docker development by creating an account on GitHub.