public static void run(String[] args) throws Exception {

		
		 if (args.length < 2) {
		 System.err.println("File.jar fileLocation fileOutput");
		 ToolRunner.printGenericCommandUsage(System.err);
		 
		 } else {
		
		Date date = new Date();
		String valueToAdd="";
		//Job cofiguration
		Configuration conf = new Configuration();
		conf.set("mapred.input.dir", args[0]);
		conf.set("mapred.output.dir", args[0] + "_filtered_"+args[1]+"_"+date.getTime());
		conf.set("filter.minValue",args[1]);
		if(args.length>2)valueToAdd=args[2]+"\t";
		conf.set("filter.valueToAdd",valueToAdd);
		
		//Job creation
		Job job = Job.getInstance(conf);

		// Set jar main class to locate it in the distributed environment
		job.setJarByClass(FilterCountDriver.class);
		// Set job name to locate it in the distributed environment
		job.setJobName("WikiTitle");

		// Set input and output format, note that we use the overrided XmlInputFormat 
		//each record: text between xmlinput.start and xmlinput.end (whatever the xml structure !)
		job.setInputFormatClass(TextInputFormat.class);
		job.setOutputFormatClass(TextOutputFormat.class);
		job.setOutputKeyClass(Text.class);
		job.setOutputValueClass(IntWritable.class);
		job.setNumReduceTasks(0);

		job.setMapperClass(FilterCountMapper.class);
		
		System.exit(job.waitForCompletion(true) ? 0 : 1);

		 }
	}