gpt4 book ai didi

hadoop - 组合器是否适用于多个映射器的结果?

转载 作者:可可西里 更新时间:2023-11-01 14:43:59 25 4
gpt4 key购买 nike

如果在同一个节点上执行多个映射器,combiner 是否会合并多个映射器的结果?

我在文档或书籍中找不到这个问题的答案。我能找到的组合器示例似乎都有所不同,即使它只能聚合来自一个映射器的结果。

最佳答案

来自雅虎的 Hadoop Tutorial :

The Combiner will receive as input all data emitted by the Mapper instances on a given node. The output from the Combiner is then sent to the Reducers, instead of the output from the Mappers. The Combiner is a "mini-reduce" process which operates only on data generated by one machine.

所以回答你的问题,是的。

关于hadoop - 组合器是否适用于多个映射器的结果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21719308/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com