String hadoopProfle = System.getProperty("hadoop.profile", "1");
if (hadoopProfle.equals("1")) {
String className = "org.apache.hadoop.mapred.LocalRunnerV1";
Class<? extends JobTrackerService> runner =
(Class<? extends JobTrackerService>) Class.forName(className);
JobTrackerService service = runner.newInstance();
service.start();
}
JobClient client = new JobClient(new JobConf(conf));
System.out.println(client.getSystemDir());
}