public static void RunEuclideanDistanceJob(Configuration conf,
			String input, String output, String airportFile)
			throws IOException, InterruptedException, ClassNotFoundException,
			URISyntaxException {

		Job job = new Job(conf, "CourseProject-DelayEuclideanDistance");
		job.setJarByClass(DelayEuclideanDistance.class);
		job.setMapperClass(DistanceMapper.class);

		job.setMapOutputKeyClass(Text.class);
		job.setMapOutputValueClass(Text.class);

		job.setReducerClass(DistanceReducer.class);
		job.setOutputKeyClass(Text.class);
		job.setOutputValueClass(NullWritable.class);

		job.setNumReduceTasks(10);

		Configuration conf2 = job.getConfiguration();
		DistributedCache.addCacheFile(new URI(airportFile), conf2);

		FileInputFormat.addInputPath(job, new Path(input));
		FileOutputFormat.setOutputPath(job, new Path(output));
		if (job.waitForCompletion(true)) {
		} else
			System.exit(1);
	}