输入文件:
file1:
hello world
file2:
hello hadoop
输出文件:
file:
world 1
hello 2
hadoop 1
以下是代码解释,后面有本人的源代码。
1.首先是Mapper类
2.Reducer类
输入文件:
file1:
hello world
file2:
hello hadoop
输出文件:
file:
world 1
hello 2
hadoop 1
以下是代码解释,后面有本人的源代码。
1.首先是Mapper类
2.Reducer类