suman gorantla
suman gorantla

Reputation: 39

include spark package in Sbt

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

enter image description here

Upvotes: 2

Views: 644

Answers (1)

ashburshui
ashburshui

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

Related Questions