value toDF is not a member of org.apache.spark.rdd.RDD

Problem

value toDF is not a member of org.apache.spark.rdd.RDD

Solution

Need to add:

val sqlContext = new SQLContext(sc)
import sqlContext.implicits._

 

 

[error] ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed

About Neil Rubens

see http://ActiveIntelligence.org

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to value toDF is not a member of org.apache.spark.rdd.RDD

  1. kasi says:

    you can use spark 1.6.0 in maven repository

    It is working fine for me.

    org.apache.spark
    spark-core_2.10
    1.6.0

    org.apache.spark
    spark-sql_2.10
    1.6.0

Leave a Reply

Your email address will not be published. Required fields are marked *

*