I'm not so sure that your error is coming from the cassandra write.

you have val data = test.map(..).map(..)

so data will actually not get created until you try to save it. Can you try
to do something like data.count() or data.take(k) after this line and see if
you even get to the cassandra part? My suspicion is that you're trying to
access something (SparkConf?) within the map closures...



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Apache-Spark-Cassandra-NotSerializable-Exception-while-saving-to-cassandra-tp12906p12960.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