A boilerplate template for apache spark projects
Go to file Use this template
2020-06-21 09:55:22 -04:00
gradle/wrapper Initial commit 2020-06-21 09:55:22 -04:00
src Initial commit 2020-06-21 09:55:22 -04:00
.gitignore Initial commit 2020-06-21 09:55:22 -04:00
build.gradle Initial commit 2020-06-21 09:55:22 -04:00
gradle.properties Initial commit 2020-06-21 09:55:22 -04:00
gradlew Initial commit 2020-06-21 09:55:22 -04:00
gradlew.bat Initial commit 2020-06-21 09:55:22 -04:00
README.md Initial commit 2020-06-21 09:55:22 -04:00
settings.gradle Initial commit 2020-06-21 09:55:22 -04:00

Spark Boilerplate

This is a boilerplate project for Apache Spark. The related blog post can be found at https://www.barrelsofdata.com/spark-boilerplate-using-scala

Build instructions

From the root of the project execute the below commands

  • To clear all compiled classes, build and log directories
./gradlew clean
  • To run tests
./gradlew test
  • To build jar
./gradlew shadowJar
  • All combined
./gradlew clean test shadowJar

Run

spark-submit --master local[*] build/libs/spark-boilerplate-1.0.jar