Java – hadoop : 1 map multiple reducers with each reducer having different functionality? Is it possible?

hadoop : 1 map multiple reducers with each reducer having different functionality? Is it possible?… here is a solution to the problem.

hadoop : 1 map multiple reducers with each reducer having different functionality? Is it possible?

Here is an example:

Can I run the same mapper against multiple reducers at the same time? Like

map output : {1:[1,2,3,4,5,4,3,2], 4:[5,4,6,7,8,9,5,3,3,2], 3:[1,5,4,3,5,6,7,8,9,1], so on}  

reducer1 : sum of all numbers  
reducer2 : average of all numbers  
reducer3 : mode of all numbers   

act on the the same key like  

reducer1 output: {1:sum of values, 2:sum of values, and so on}  
reducer2 output: {1:avg of values, 2: avg of values and so on}
reducer3 output: {1:mode of values, 2: mode of values, and so on}  

Wait a minute.. Please let me know.

Solution

I really wanted to answer this question for you, but it has already been asked. Hadoop one Map and multiple Reduce

Related Problems and Solutions