Thanks for the answer Reynold.
Yes I can use the dataset but it will solve the purpose I am supposed to
use it for.
I am trying to work on a solution where I need to save the case class along
with data in hdfs.
Further this data will move to different folders corresponding to different
case
You can use the Dataset API -- it should solve this issue for case classes
that are not very complex.
On Fri, Oct 7, 2016 at 12:20 PM, Deepak Sharma
wrote:
> Hi
> I am saving RDD[Example] in hdfs from spark program , where Example is
> case class.
> Now when i am trying
Hi
I am saving RDD[Example] in hdfs from spark program , where Example is case
class.
Now when i am trying to read it back , it returns RDD[String] with the
content as below:
*Example(1,name,value)*
The workaround can be to write as a string in hdfs and read it back as
string and perform further