Reputation: 7559
I'm trying to take my first steps in Mllib. My library dependencies are:
libraryDependencies += "org.apache.spark" % "spark-core_2.11" % "2.2.0"
libraryDependencies += "com.github.fommil.netlib" % "all" % "1.1.2"
but I still get:
Error:(4, 27) object ml is not a member of package org.apache.spark
import org.apache.spark.ml.regression.GeneralizedLinearRegression
Upvotes: 4
Views: 5169
Reputation: 16076
You've included dependency to Spark Core, you should also add Spark MLLib:
libraryDependencies += "org.apache.spark" % "spark-mllib_2.11" % "2.2.0"
Or simpler:
libraryDependencies += "org.apache.spark" %% "spark-mllib" % "2.2.0"
Upvotes: 8