This is a simple SBT application with Spark dependencies included. SBT supports scala and java code.
- Java 7+
- SBT installation
Scala code goes in src/main/scala
Java code goes in src/main/java
You compile your application (and all codes included) with:
sbt compile
That command creates the classes (.class
) but it does not package the
application.
sbt package
That command creates the classes and also packages them into a .jar
.
This is required for application submission.
The generated jar will be located under target/scala-X
where X
is the scala version being used.
sbt clean
That command cleans all .class
and .jar
files.
The dependencies are listed in build.sbt
. So, when you compile or package the
application the SBT will download these dependecies automatically to your local
environment.
The following applications are included in the repository:
SampleApp.scala
: the most trivial template on Earth.PageRank.scala
: a naive implementation of PageRank.
** Under construction: this repository will be updated as necessary or requested.