I am using Spark version 1.5.2 with Sparklingwater version 1.5.2 .

I am getting a runtime error when I try to write a dataframe to disk. My
code looks as shown below,

val df =
sqlContext.read.format("com.databricks.spark.csv").option("inferSchema",inferSchema.toString).option("header",isHeader.toString).load(datapath)
    
df.write.parquet("some path")

I am getting a runtime error that says "Failed to load class for data
source: parquet."

I tried writing as json using df.write.json function then also I got similar
error for json.

I am new to spark. Am I missing anything here ? 

Thanks,
Shyam



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Unable-to-serialize-dataframe-tp26516.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to