132133134135136137138139140141142
try { String jobId; SubmitHttpXCommand submit = null; if (jobType.equals("pig")) { submit = new SubmitPigXCommand(conf, getAuthToken()); } else if (jobType.equals("mapreduce")) { submit = new SubmitMRXCommand(conf, getAuthToken()); }
154155156157158159160161162163164
try { String jobId; if (useXCommand) { SubmitHttpXCommand submit = null; if (jobType.equals("pig")) { submit = new SubmitPigXCommand(conf, getAuthToken()); } else if (jobType.equals("mapreduce")) { submit = new SubmitMRXCommand(conf, getAuthToken()); }
156157158159160161162163164165166
try { String jobId; SubmitHttpXCommand submit = null; if (jobType.equals("pig")) { submit = new SubmitPigXCommand(conf); } else if (jobType.equals("mapreduce")) { submit = new SubmitMRXCommand(conf); } else if (jobType.equals("hive")) {
152153154155156157158159160161162
157158159160161162163164165166167