Spark Development with scala and sbt
252
This is a base base image for developing Apache Spark applications.
One can easily obtain the latest image using:
docker pull jacintoarias/docker-sparkdev:latest
The following command starts the sbt prompt, mounts your working directory as project root and builds the dependencies cache on the local .ivy folder.
docker run \
--rm \
-v $(pwd):/home/work/project \
-v $(pwd)/.ivy:/sbtlib \
jacintoarias/docker-sparkdev \
sbt -Dsbt.global.staging=./.staging package \
-ivy ./.ivy \
Runs an application withing a jar file in your local sbt build
docker run \
--rm \
-v $(pwd):/home/work/project \
jacintoarias/docker-sparkdev \
spark-submit \
--class <YOUR MAIN CLASS> \
target/scala-2.11/<YOUR JAR FILE> \
<ARGUMENTS>
Runs spark shell or any other program
docker run \
--rm \
-v $(pwd):/home/work/project \
jacintoarias/docker-sparkdev \
spark-shell
Content type
Image
Digest
Size
617.7 MB
Last updated
over 7 years ago
docker pull jacintoarias/sparkdev