Skip to content

katrinsharp/spark-sample-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages