public static void main(String[] args) throws Exception {
    Configuration conf = new Configuration();
    Path path = new Path("/user/zhoushuai/input.txt");
	Path outFile = new Path("/user/zhoushuai/countResult");
    Job job = new Job(conf, "word count");
    job.setJarByClass(WordCount.class);
    job.setMapperClass(TokenizerMapper.class);
    job.setCombinerClass(IntSumReducer.class);
    job.setReducerClass(IntSumReducer.class);
    job.setOutputKeyClass(Text.class);
    job.setOutputValueClass(IntWritable.class);
    FileInputFormat.addInputPath(job, path);
    FileOutputFormat.setOutputPath(job, outFile);
    System.exit(job.waitForCompletion(true) ? 0 : 1);
  }