You might also try the following, which I think is equivalent: schemaRDD.map(_.mkString(","))
On Wed, Dec 24, 2014 at 8:12 PM, Tobias Pfeiffer <t...@preferred.jp> wrote: > Hi, > > On Wed, Dec 24, 2014 at 3:18 PM, Hafiz Mujadid <hafizmujadi...@gmail.com> > wrote: >> >> I want to convert a schemaRDD into RDD of String. How can we do that? >> >> Currently I am doing like this which is not converting correctly no >> exception but resultant strings are empty >> >> here is my code >> > > Hehe, this is the most Java-ish Scala code I have ever seen ;-) > > Having said that, are you sure that your rows are not empty? The code > looks correct to me, actually. > > Tobias > > >