跪求用JAVA 写一个mapreduce程序,完成数据读取处理,高分在线等

2025-05-16 19:42:17
推荐回答(1个)
回答1:

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”。我们人越多,数书就更快。

Now we get together and add our individual counts. That's reduce.
现在我们到一起,把所有人的统计数加在一起。这就是“Reduce”。

你这个是并行处理程序,用来处理这么小的数据合适吗?你有所需要的Hadoop环境吗