This might be a better question to ask on the cassandra mailing list as I believe that is where the exception is coming from.
On Thu, Sep 11, 2014 at 2:37 AM, lmk <lakshmi.muralikrish...@gmail.com> wrote: > Hi, > My requirement is to extract certain fields from json files, run queries on > them and save the result to cassandra. > I was able to parse json , filter the result and save the rdd(regular) to > cassandra. > > Now, when I try to read the json file through sqlContext , execute some > queries on the same and then save the SchemaRDD to cassandra using > saveToCassandra function, I am getting the following error: > > java.lang.NoSuchMethodException: Cannot resolve any suitable constructor > for > class org.apache.spark.sql.catalyst.expressions.Row > > Pls let me know if a spark SchemaRDD can be directly saved to cassandra > just > like the regular rdd? > > If that is not possible, is there any way to convert the schema RDD to a > regular RDD ? > > Please advise. > > Regards, > lmk > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/SchemaRDD-saveToCassandra-tp13951.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 > >