Map 是什么
We want to count all the books in the library. You count up shelf #1, I count up shelf #2. That’s map. The more people we get, the faster it goes.
我们要数图书馆中的所有书。你数1号书架,我数2号书架。这就是“Map”。我们人越多,数书就更快。
Reduce 是什么
Now we get together and add our individual counts. That’s reduce.
现在我们到一起,把所有人的统计数加在一起。这就是“Reduce”。
We want to count all the books in the library. You count up shelf #1, I count up shelf #2. That’s map. The more people we get, the faster it goes.
我们要数图书馆中的所有书。你数1号书架,我数2号书架。这就是“Map”。我们人越多,数书就更快。
Reduce 是什么
Now we get together and add our individual counts. That’s reduce.
现在我们到一起,把所有人的统计数加在一起。这就是“Reduce”。
本文通过生动的例子介绍了MapReduce的基本思想:多人合作数图书馆中的书。首先,每个人分别数一个书架上的书(Map),然后大家汇总各自的结果(Reduce)。这种方法能够有效地提高统计效率。
700

被折叠的 条评论
为什么被折叠?



