/** * http://www.aboutyun.com/thread-7041-1-1.html */ public class RemoveDuplicate {
public static class Map extends Mapper<Object,Text, Text,Text>{ private static Text line = new Text(); public void map(Object key,Text value,Context context) throws IOException, InterruptedException {//todo line = value; context.write(line,new Text("")); } }
public static class Reduce extends Reducer<Text,Text,Text,Text>{ public void reduce(Text key,Iterable<Text> values,Context context) throws IOException, InterruptedException {//todo context.write(key,new Text("")); } }
public static void main(String[] args) throws IOException, ClassNotFoundException, InterruptedException {//todo Configuration conf = new Configuration(); Job job = Job.getInstance(conf,"RemoveDuplicate");//todo job.setJarByClass(RemoveDuplicate.class);