This project is derived from huangjs/spark-sample-project. I updated several libraries.
- Sane compiler flags to scala
sbt console
starts a Spark and SparkSQL context- Advanced static analyzer reports possible bugs and bad coding practices
- Spark 2.1.0
- Scala 2.11.8
- ScalaTest 2.2.4
- ScalaCheck 1.12.2
linter (https://github.com/HairyFotr/linter)
Usage: automatically runs during Compilation and evaluation in console
sbt-scapegoat (https://github.com/sksamuel/sbt-scapegoat)
Usage: automatically runs during Compilation
Open target/scala-2.11/scapegoat.xml or target/scala-2.11/scapegoat.html
Usage: sbt scalastyle
Open target/scalastyle-result.xml
Check level are all "warn", change to "error" if you want to reject code changes when integrated with CI tools.
Currently Test and run will fork a JVM. The reason it's necessary is that SBT's classloader doesn't work well with Spark and Spark shell.
However sbt console
does not recognize fork key right now. It might throw ScalaReflectionException, etc.
- dobashim (dobashim@oss.nttdata.co.jp)
- Jianshi Huang (jianshuang@paypal.com; jianshi.huang@gmail.com)