三个文件
2017-03-10 a
2017-03-11 b2017-03-12 d2017-03-13 d2017-03-142017-03-15 a
2017-03-10 e
2017-03-11 b2017-03-12 c2017-03-132017-03-14 h2017-03-15 a2017-03-17 p2017-03-10
2017-03-11 b2017-03-122017-03-13 d2017-03-142017-03-15 f2017-03-16 o
import java.io.IOException;import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.fs.Path;import org.apache.hadoop.io.Text;import org.apache.hadoop.mapreduce.Job;import org.apache.hadoop.mapreduce.Mapper;import org.apache.hadoop.mapreduce.Reducer;import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;public class Deup{ public static class Map extends Mapper
结果
2017-03-10
2017-03-10 a 2017-03-10 e 2017-03-11 b 2017-03-12 2017-03-12 c 2017-03-12 d 2017-03-13 2017-03-13 d 2017-03-14 2017-03-14 h 2017-03-15 a 2017-03-15 f 2017-03-16 o 2017-03-17 p