@@ -0,0 +1,1793 @@
+package kick;%0A%0A/*import java.io.File;%0Aimport java.io.IOException;%0Aimport javax.xml.parsers.DocumentBuilderFactory;%0Aimport javax.xml.parsers.DocumentBuilder;%0Aimport javax.xml.parsers.ParserConfigurationException;%0Aimport javax.xml.parsers.SAXParser;%0Aimport javax.xml.parsers.SAXParserFactory;*/%0A/*%0Aimport org.w3c.dom.Document;%0Aimport org.w3c.dom.NodeList;%0Aimport org.w3c.dom.Node;%0Aimport org.w3c.dom.Element;%0Aimport org.xml.sax.Attributes;%0Aimport org.xml.sax.SAXException;%0Aimport org.xml.sax.helpers.DefaultHandler;*/%0A%0A//import java.io.File;%0A%0A%0Aimport org.apache.hadoop.conf.Configuration;%0Aimport org.apache.hadoop.fs.FileSystem;%0Aimport org.apache.hadoop.fs.Path;%0Aimport org.apache.hadoop.io.LongWritable;%0Aimport org.apache.hadoop.io.NullWritable;%0Aimport org.apache.hadoop.io.Text;%0Aimport org.apache.hadoop.mapreduce.lib.input.FileInputFormat;%0Aimport org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;%0Aimport org.apache.hadoop.mapreduce.Job;%0A%0A%0A%0Apublic class Recommend %7B%0A%0A%0A%09public static void main(String%5B%5D args) throws Exception %7B%0A%09%09Configuration conf = new Configuration();%0A%09%09Job job = new Job(conf, %22Recommend%22);%0A%09%09job.setJarByClass(Recommend.class);%0A%0A%09%09FileInputFormat.addInputPath(job, new Path(args%5B0%5D));%0A%09%09FileOutputFormat.setOutputPath(job, new Path(args%5B1%5D));%0A%09%09%0A%09%09// the keys are text (strings)%0A%09%09job.setOutputKeyClass(NullWritable.class);%0A%09%09job.setMapOutputKeyClass(LongWritable.class);%0A%09%09job.setMapOutputValueClass(Text.class);%0A%09%09// the values are text (strings)%0A%09%09job.setOutputValueClass(Text.class);%0A%09%09//job.setNumReduceTasks(0);%0A%09%09job.setMapperClass(Map.class);%0A%09%09System.exit(job.waitForCompletion(true) ? 0 : 1);%0A%09%09Path outPath = new Path(args%5B1%5D);%0A%09%09FileSystem dfs = FileSystem.get(outPath.toUri(), conf);%0A%09%09if (dfs.exists(outPath)) %7B%0A%09%09%09dfs.delete(outPath, true);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create Recommend.java