A Giter8 template for Spark SBT applications.
-
Install SBT with Homebrew (
brew install sbt
) or with SDKMAN which is a better option -
Start the app generation wizard:
sbt new MrPowers/spark-sbt.g8
-
Fill out the project properties on the command line
-
Run the tests to make sure the project was generated correctly.
cd
into the top level project directory and then runsbt test
.
Important Note: Use Scala 2.11 for Spark 2 apps and Scala 2.12 for Spark 3 apps (e.g. use Scala 2.11.12 with Spark 2.4.7 and Scala 2.12.12 with Spark 3.1.1).
name (default: my-cool-project)
The project name. This should be all lowercase and use hyphens.
package (default: com.github.mrpowers.my.cool.project)
The top-level package of the project. This is typically the organization name followed by the project name.
For example, the top level package of spark-daria is com.github.mrpowers.spark.daria
, which consists of the organization name com.github.mrpowers
and the project name spark.daria
.
scalaVersion (default: 2.12.12)
sparkVersion (default: 3.1.1)
sbtVersion (default: 1.4.9)
version (default: 0.0.1)
The project version. 0.0.1
is usually the best place to start.
Send pull requests to keep this project updated.
We'll always try to keep this updated with the latest version of Spark and Scala.