Hadoop-MapReduce编程思想浅析

MapReduce其实是两个分离的阶段:map和reduce。首先看一个简单的例子: 现需要计算1w篇文章中字母‘w’的数量。这些文章以键值对(key/value)的形式存储(表一): DocumentID(key) DocumentContent(Value) 1 “This is an article”//假设这篇文章中含有“w”字母5个 2 “This is another article”
相关文章
相关标签/搜索