spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bipin <>
Subject Create dataframe from saved objectfile RDD
Date Mon, 01 Jun 2015 06:27:42 GMT
Hi, what is the method to create ddf from an RDD which is saved as
objectfile. I don't have a java object but a structtype I want to use as
schema for ddf. How to load the objectfile without the object.

I tried retrieving as Row
        val myrdd =

But I get 
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to

How to work around this. Is there a better way.

View this message in context:
Sent from the Apache Spark User List mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message