Java – MapReduce job without mapper

This may be a very basic question, but it is still helpful for many novices like me

Can I do Mr work without a mapper? Do we need to achieve this and the way to achieve this?

Solution

Identity mapper is a mapper that maps input directly to output

Suppose you have an input in the form of key value, and you have no relationship in the mapper stage. The only thing you want to do is group the values according to the key and aggregate the values in the reducer stage. You can use this mapper

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>