object mllib is not a member of package org.apache.spark

error: object mllib is not a member of package org.apache.spark
[INFO] import org.apache.spark.mllib.recommendation.{ALS, ALSModel}


    org.apache.spark
    spark-mllib_2.11
    2.3.1
    

注意,注释掉上面的

runtime

不然即使加入pom.xml也会无效的

你可能感兴趣的:(Scala与Spark)