Server server = new Server("server", dir, dir, dir, dir, conf);
server.init();
HadoopService hadoop = (HadoopService) server.get(Hadoop.class);
hadoop.validateJobtracker("JT");
hadoop.validateNamenode("NN");
server.destroy();
conf = new XConfiguration();
conf.set("server.services", services);
conf.set("server.hadoop.job.tracker.whitelist", "*");
conf.set("server.hadoop.name.node.whitelist", "*");