Я использую spark 2.4.4. Мой sbt-файл выглядит как
name := "convertor"
version := "0.1"
scalaVersion := "2.11.12"
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.4"
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.4.4"
libraryDependencies += "org.apache.spark" %% "spark-mllib" % "2.4.4" % "runtime"
Но все равно я получаю
Error:(6, 25) object ml is not a member of package org.apache.spark
import org.apache.spark.ml.feature.OneHotEncoderEstimator