Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.43 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.43 KB

Setup instructions:

Verify

  • Open up a CLI (command line) and cd to root folder of this repo. Type:
> sbt

You should see > after it's updating some its dependencies (Use exit for quitting). Now type:

> console

You should see scala> after some more updates (Use :q for quitting). You're ready to go with Scala CLI.

  • Open the cloned project in IJ: File -> New -> Project from existing sources. You're ready to go with IJ.

Different ways to execute the code

sbt "testOnly sample.<name-of-the-test>" - executes specific test

sbt run - executing Main with Spark in-memory

sbt assembly - creates a self-contained jar: spark-sample-project/target/scala-2.11/spark-sample-project-assembly-0.1.jar that can be submitted to Spark cluster