1. In every map calculate TopK (this is local top K for each map)
2. Spawn a signle reduce , now top K from all mappers will flow to this reducer and hence global Top K will be evaluated.
把问题想成
1. You have been given the results of X number of horse races.
2. You need to find Top N fastest horse.
1条答案
按热度按时间lnxxn5zx1#
把问题想成