Re: reduceByKey vs countByKey

2015-02-24 Thread Jey Kottalam
, Feb 24, 2015 at 3:53 PM, Sathish Kumaran Vairavelu wrote: > Hello, > > Quick question. I am trying to understand difference between reduceByKey vs > countByKey? Which one gives better performance reduceByKey or countByKey? > While we can perform same count operation using reduceBy

reduceByKey vs countByKey

2015-02-24 Thread Sathish Kumaran Vairavelu
Hello, Quick question. I am trying to understand difference between reduceByKey vs countByKey? Which one gives better performance reduceByKey or countByKey? While we can perform same count operation using reduceByKey why we need countByKey/countByValue? Thanks Sathish