Thank you Tristan. It is totally what I am looking for :)

2015-05-14 5:05 GMT+03:00 Tristan Blakers <tris...@blackfrog.org>:

> You could use a map() operation, but the easiest way is probably to just
> call values() method on the JavaPairRDD<A,B> to get a JavaRDD<B>.
>
> See this link:
>
> https://www.safaribooksonline.com/library/view/learning-spark/9781449359034/ch04.html
>
> Tristan
>
>
>
>
>
> On 13 May 2015 at 23:12, Yasemin Kaya <godo...@gmail.com> wrote:
>
>> Hi,
>>
>> I want to get  *JavaPairRDD<String, String> *from the tuple part of 
>> *JavaPairRDD<String,
>> Tuple2<String, String>>  .*
>>
>> As an example: (
>> http://www.koctas.com.tr/reyon/el-aletleri/7,(0,1,0,0,0,0,0,0,46551)) in
>> my *JavaPairRDD<String, Tuple2<String, String>> *and I want to get
>> *( (46551), (0,1,0,0,0,0,0,0) )*
>>
>> I try to split tuple._2() and create new JavaPairRDD but I can't.
>> How can I get that ?
>>
>> Have a nice day
>> yasemin
>> --
>> hiç ender hiç
>>
>
>


-- 
hiç ender hiç

Reply via email to