Hi, I had the same problem.

One option (starting with Spark 1.2, which is currently in preview) is to
use the Avro library for Spark SQL.

Other is using Kryo Serialization.
by default spark uses Java Serialization, you can specify kryo
serialization while creating spark context.

val conf = new SparkConf().set("spark.serializer",
"org.apache.spark.serializer.KryoSerializer")
val sc = new SparkContext(conf)

This worked for me.

Regards,
Anish

Reply via email to