I have a scenario.
In next job2 I need to get/find i key having maximum value.
eg i=3, 3 keys having maximum value.
(i will be a custom parameter)
How to approach this.
Should we calculated max() in job2 mapper as there will be unique keys(as the output is coming from previous reducer)
find max in second jobs reducer.But again how to find i keys?
I tried in this way
Instead of emiting "value" as value in reducer.I emitted value as key so I can get the values in ascending order. And I wrote the next MR job.where mapper simply emits the key/value.
Reducer finds the max of key But again I am stuck that cannot be done as we try to get the id , because id is only unique,Values are not uniqe
How to solve this.