Re: SchemaRDD to RDD[String]

2014-12-30 Thread Yana
schemaRDD.first,list) and see if you get anything -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/SchemaRDD-to-RDD-String-tp20846p20910.html Sent from the Apache Spark User List mailing list a

Re: SchemaRDD to RDD[String]

2014-12-24 Thread Michael Armbrust
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 wrote: > Hi, > > On Wed, Dec 24, 2014 at 3:18 PM, Hafiz Mujadid > wrote: >> >> I want to convert a schemaRDD into RDD of String. How can we do that? >>

Re: SchemaRDD to RDD[String]

2014-12-24 Thread Tobias Pfeiffer
Hi, On Wed, Dec 24, 2014 at 3:18 PM, Hafiz Mujadid 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 Jav

SchemaRDD to RDD[String]

2014-12-23 Thread Hafiz Mujadid
ype" ) ) res=record.getString( i ) else res=record.getString( i ) println(res) res } -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.