Re: Distinct on key-value pair of JavaRDD

2015-11-19 Thread Ramkumar V
I thought some specific function would be there but I'm using reducebykey now.
Its working fine. Thanks a lot.

*Thanks*,



On Tue, Nov 17, 2015 at 6:21 PM, ayan guha  wrote:

> How about using reducebykey?
> On 17 Nov 2015 22:00, "Ramkumar V"  wrote:
>
>> Hi,
>>
>> I have JavaRDD. I would like to do distinct only on key
>> but the normal distinct applies on both key and value. i want to apply only
>> on key. How to do that ?
>>
>> Any help is appreciated.
>>
>> *Thanks*,
>> 
>>
>>


Distinct on key-value pair of JavaRDD

2015-11-17 Thread Ramkumar V
Hi,

I have JavaRDD. I would like to do distinct only on key but
the normal distinct applies on both key and value. i want to apply only on
key. How to do that ?

Any help is appreciated.

*Thanks*,