public static void RunKNNJob(Configuration conf,
			String input, String output, String toBeClassified, String matrix)
			throws IOException, InterruptedException, ClassNotFoundException,
			URISyntaxException {
	Job job = new Job(conf, "CourseProject-DelayEuclideanDistance");
	job.setJarByClass(KNN.class);
	job.setMapperClass(KNNMapper.class);

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

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

	job.setNumReduceTasks(10);

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

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