value
subtractByKey
is not a member of org.apache.spark.rdd.RDD[(String, LabeledPoint)]value
join
is not a member of org.apache.spark.rdd.RDD[(String, LabeledPoint)]
How come this is happening? org.apache.spark.rdd.RDD[(String, LabeledPoint)] is pair-value RDD and I already imported import org.apache.spark.rdd._
In the spark-shell, this works exactly as expected, without having to
import
anything: