A barebones project with scala, apache spark built using sbt. Spark-shell provides spark and sc variables pre-initialised.
cleanDeletes all generated files (in the target directory).compileCompiles the main sources (in src/main/scala and src/main/java directories).testCompiles and runs all tests.consoleStarts the Scala interpreter with a classpath including the compiled sources and all dependencies. To return to sbt, type :quit, Ctrl+D (Unix), or Ctrl+Z (Windows).run <argument>*Runs the main class for the project in the same virtual machine as sbt.packageCreates a jar file containing the files in src/main/resources and the classes compiled from src/main/scala and src/main/java.help <command>Displays detailed help for the specified command. If no command is provided, displays brief descriptions of all commands.reloadReloads the build definition (build.sbt, project/.scala, project/.sbt files). Needed if you change the build definition.
...
Just import it into your favorite IDE as a sbt project. Tested with IntelliJ to work. Or use your favorite editor and build from command line with sbt.
- SPARK VERSION = 3.1.2
- SCALA VERSION = 2.12.13
- JAVA VERSION = 1.8.0_275