A simple boilerplate Spark word count application using sbt and scala.
- Java
- Python
- Scala
- Spark
- Install Scala plugin for Intellij IDEA.
- Install SBT plugin for Intellij IDEA.
- Import this project as a SBT project into your IntelliJ IDEA.
- Build and run the project.
> cd <project-directory>
> sbt compile
> sbt run
> sbt package
spark-submit --class WordCount --master local <path-to-the-jar>/<jar-file>.jar
Usually the path to the jar file is <project-directory>/target/scala-<scala-version>