score:36

Accepted answer

The issue here is the explicit RDD[String] type annotation. It looks like RDD isn't imported by default in spark-shell, which is why Scala is complaining that it can't find the RDD type. Try running import org.apache.spark.rdd.RDD first.


Related Query

More Query from same tag