主程序入口函数,如果在linux中运行需要执行命令:
hadoop jar MaxTemperature.jar MaxTemperature /data.txt /out
/data.txt /out 两个需要传递给程序的参数,是路径
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
import org.apache.