HadoopService.class.getName()), ",");
XConfiguration conf = new XConfiguration();
conf.set("server.services", services);
Server server = new Server("server", dir, dir, dir, dir, conf);
server.init();
Hadoop hadoop = server.get(Hadoop.class);
final JobClient jca[] = new JobClient[1];
final FileSystem fsa[] = new FileSystem[1];
hadoop.execute("u", getHadoopConf(), new Hadoop.JobClientExecutor<Void>() {
@Override
public Void execute(JobClient jc, FileSystem fs) throws IOException {
fs.mkdirs(new Path("/tmp/foo"));
jc.getQueues();
jca[0] = jc;