下面是一個例子:hadoop:1個映射多個reducer與每個reducer具有不同的功能?可能?
是否有可能同時使用相同的mapper運行多個reducer?像
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}
等等。請讓我知道。
其實很好的問題。 – Adelin