地图减速器的数量减少 [英] Number of reducer in map reduce

查看:105
本文介绍了地图减速器的数量减少的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这意味着将创建三个分区。

在这种情况下,Reducer和reduce函数的运行时间是多少?

$ b



$ b

解决方案

如果你设置了3个reducer,它们将全部运行。但是,如果您在大多数中只有两个键,那么两个减速器实际上会接收要处理的数据。


I have set 3 reducer in driver class in MR.

it means three partitions will be created..

but mapper is emiting only two unique key say male and female.

In this case, how times Reducer and reduce functions will run?

解决方案

If you set 3 reducers they will all run. However, if you only have two keys at most two of the reducers will actually receive data to process.

这篇关于地图减速器的数量减少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆