简体   繁体   中英

In Hadoop mapreduce does all mappers need to communicate with all reducers?

In mapreduce i know that mappers dont communicate with each other. But does all mappers need to communicate with all reducers.?

It depends on the set of keys that the mapper produces. If it doesn't produce any keys that need to be handled by a particular reducer, it may not need to communicate with that reducer at all. But the keys produced by a mapper typically depend on its input, and the input can vary from job to job, so it's possible (and even likely) that for some jobs, every mapper will need to send data to every reducer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM