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
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?
>>
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
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.