@@ -0,0 +1,865 @@
+import java.io.IOException;%0A%0A%0Aimport org.apache.hadoop.fs.Path;%0Aimport org.apache.hadoop.io.IntWritable;%0Aimport org.apache.hadoop.io.Text;%0Aimport org.apache.hadoop.mapred.FileInputFormat;%0Aimport org.apache.hadoop.mapred.FileOutputFormat;%0Aimport org.apache.hadoop.mapred.JobClient;%0Aimport org.apache.hadoop.mapred.JobConf;%0A%0A%0Apublic class AvgTemp %7B%0A%0A%09public static void main(String%5B%5D args) throws IOException %7B%0A%0A%09%09 %0A%09%09%09%0A%09%09%09%0A%09%09%09JobConf conf = new JobConf(AvgTemp.class);%0A%09%09%09conf.setJobName(%22AvgMax temperature%22);%0A%09%09%09%0A%09%09%09%0A%09%09%09FileInputFormat.addInputPath(conf, new Path(args%5B0%5D));%0A%09%09%09FileOutputFormat.setOutputPath(conf, new Path(args%5B1%5D));%0A%09%09%09%0A%09%09%09conf.setMapperClass(AvgTempMapper.class);%0A%09%09%09conf.setReducerClass(AvgTempReducer.class);%0A%09%09%09%0A%09%09%09conf.setOutputKeyClass(Text.class);%0A%09%09%09conf.setOutputValueClass(IntWritable.class);%0A%09%09%09%0A%09%09%09JobClient.runJob(conf);%0A%09%09%09%0A%09%09%7D%0A%0A%7D%0A

Create AvgTemp.java