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
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With