Reputation: 39
I need to include the below spark package in SBT build.sc file. Please help me with sbt syntax.Also let me know how to
import org.apache.spark.ml.stat.Correlation
Upvotes: 2
Views: 644
Reputation: 1410
libraryDependencies += "org.apache.spark" % "spark-mllib_2.10" % "2.2.0" % "provided"
Please add this dependency in your build.sc file, and you could easily use it in you spark application, such as your way:
import org.apache.spark.ml.stat.Correlation
Upvotes: 2