Re: reduceByKey vs countByKey

2015-02-24 Thread Jey Kottalam
, Feb 24, 2015 at 3:53 PM, Sathish Kumaran Vairavelu vsathishkuma...@gmail.com 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

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