138139140141142143144145146147148
} else if (jobType.equals("mapreduce")) { submit = new SubmitMRXCommand(conf, getAuthToken()); } jobId = submit.call(); start(jobId); return jobId; } catch (CommandException ex) { throw new DagEngineException(ex);
160161162163164165166167168169170
} else if (jobType.equals("mapreduce")) { submit = new SubmitMRXCommand(conf, getAuthToken()); } jobId = submit.call(); } else { SubmitHttpCommand submit = null; if (jobType.equals("pig")) { submit = new SubmitPigCommand(conf, getAuthToken());
171172173174175176177178179180181
} else if (jobType.equals("mapreduce")) { submit = new SubmitMRCommand(conf, getAuthToken()); } jobId = submit.call(); } start(jobId); return jobId; } catch (CommandException ex) {
168169170171172173174175176177178
} else if (jobType.equals("sqoop")) { submit = new SubmitSqoopXCommand(conf); } jobId = submit.call(); start(jobId); return jobId; } catch (CommandException ex) { throw new DagEngineException(ex);
161162163164165166167168169170171
} else if (jobType.equals("hive")) { submit = new SubmitHiveXCommand(conf); } jobId = submit.call(); start(jobId); return jobId; } catch (CommandException ex) { throw new DagEngineException(ex);
163164165166167168169170171172173
174175176177178179180181182183184