public static void main(String[] args) throws Exception {
//    if (args.length != 2) {
//      System.err.println("Usage: MaxTemperature <input path> <output path>");
//      System.exit(-1);
//    }
      String input = "/Users/aaronwong/Documents/workspace_java/DataPreprocessing/src/data/out_countries.list";
      String output = input+"_out";
    
    Job job = new Job();
    job.setJarByClass(MovieAnalysis.class);
    job.setJobName("Max temperature");

    FileInputFormat.addInputPath(job, new Path(input));
    FileOutputFormat.setOutputPath(job, new Path(output));
    
    job.setMapperClass(MovieCountryMapper.class);
    job.setReducerClass(MovieCountryReducer.class);

    job.setOutputKeyClass(IntWritable.class);
    job.setOutputValueClass(Text.class);
    
    System.exit(job.waitForCompletion(true) ? 0 : 1);
  }