Skip to content

This project is derived from huangjs/spark-sample-project. I updated several libraries.

License

Notifications You must be signed in to change notification settings

dobashim/spark-scala-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Spark project

This project is derived from huangjs/spark-sample-project. I updated several libraries.

Highlights

  • Sane compiler flags to scala
  • sbt console starts a Spark and SparkSQL context
  • Advanced static analyzer reports possible bugs and bad coding practices

Libraries included

  • Spark 2.1.0
  • Scala 2.11.8
  • ScalaTest 2.2.4
  • ScalaCheck 1.12.2

Static Analyzer

Usage: automatically runs during Compilation and evaluation in console

Usage: automatically runs during Compilation

Open target/scala-2.11/scapegoat.xml or target/scala-2.11/scapegoat.html

Coding Style Checker

ScalaStyle

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.

Issues

fork limitation in sbt console

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.

Author

Original author

About

This project is derived from huangjs/spark-sample-project. I updated several libraries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 50.8%
  • Shell 49.2%