Hi all, I am fairly new to Hadoop, so please bear with me if you think my question is too straight forward. I am to computes the average of the values in a file F. F contains a large number of floating point numbers. F is splitted into different fragments. In mapper, for each fragment, I am using two keywords: SUM and COUNT, and then pass two (key, value) pairs to the framework: (SUM, sum of floating point numbers in the fragment) (COUNT, total number of floating point numbers in the fragment) In reduce, I can calculate the SUM and COUNT separately. But the problem is, I find no place I can put in the code to compute SUM/COUNT to get the average. I've attached my code here. Can someone shed some light on this? Thanks very much!
Congcong
