@@ -0,0 +1,1007 @@
+import org.apache.hadoop.fs.Path;%0Aimport org.apache.hadoop.io.IntWritable;%0Aimport org.apache.hadoop.io.Text;%0Aimport org.apache.hadoop.mapreduce.job;%0Aimport org.apache.hadoop.mapreduce.lib.input.FileInputFormat;%0Aimport org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;%0A%0Apublic class MaxTemperature %7B%0A%0A  public static void main(String%5B%5D args) throws Exception %7B%0A    if (args.length != 2) %7B%0A      System.err.println(%22Usage: MaxTemperature %3Cinput path%3E %3Coutput path%3E%22);%0A      System.exit(-1);%0A    %7D%0A    %0A    Job job = new Job();%0A    job.setJarByClass(MaxTemperature.class);%0A    job.setJobName(%22Max temperature%22);%0A    %0A    FileInputFormat.addInputPath(job, new Path(args%5B0%5D));%0A    FileOutputFormat.setOutputPath(job, new Path(args%5B1%5D));%0A    %0A    job.setMapperClass(MaxTemperatureMapper.class);%0A    job.setReducerClass(MaxTemperatureReducer.class);%0A    %0A    job.setOutputKeyClass(Text.class);%0A    job.setOutputValueClass(IntWritable.class);%0A    %0A    System.exit(job.waitForCompletion(true) ? 0 : 1);%0A  %7D%0A%7D%0A

Create MaxTemperature.java