posted 8 years ago
Hi,
I'm trying to get the inverse of aggregated value of each key in reducer.
Eg: for key-6, value-2.0,5.0,3.0 output of the reducer should be 6 0.1 . But in the output file i always get 6 10.
Following snippet describes my goal:
double=1/sum;
context.write(key, new DoubleWritable(temp));
Any help is appreciated