String execPath = conf.get("mapred.mesos.executor.path", null);
if (execPath == null) {
execPath = new File("bin/mesos-executor").getCanonicalPath();
}
byte[] initArg = conf.get("mapred.job.tracker").getBytes("US-ASCII");
return new ExecutorInfo(execPath, initArg);
} catch (IOException e) {
throw new RuntimeException(e);
}
}