学号:2120011013 (一)编程实现文件合并和去重操作 对于两个输入文件,即文件A和文件B,编写MapReduce程序,对两个文件进行合并,并剔除其中重复的内容,得到一个新的输出文件C。下面是输入文件和输出文件的一个样例供参考。 输入文件A的样例如下: 20170101 x 20170102 y 20170103 x 20170104 y 20170105 z 20170106 x 输入文件B的样例如下: 20170101 y 20170102 y 20170103 x 20170104 z 20170105 y 根据输入文件A和B合并得到的输出文件C的样例如下: 20170101 x 20170101 y 20170102 y 20170103 x 20170104 y 20170104 z 20170105 y 20170105 z 20170106 x package shiyan4; import java.io.IOException; public class Merge { //重载map函数,直接将输入中的value复制到输出数据的key上 public...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with IntWritable
Contact IntWritable, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack