/** * Submit a Map/Reduce job via HTTP. * * @param conf job configuration. * @return the job Id. * @throws OozieClientException thrown if the job could not be submitted. */ public String submitMapReduce(Properties conf) throws OozieClientException { if (conf == null) { throw new IllegalArgumentException("conf cannot be null"); } validateHttpSubmitConf(conf); return (new HttpJobSubmit(conf, "mapreduce")).call(); }
/** * Submit a Map/Reduce job via HTTP. * * @param conf job configuration. * @return the job Id. * @throws OozieClientException thrown if the job could not be submitted. */ public String submitMapReduce(Properties conf) throws OozieClientException { if (conf == null) { throw new IllegalArgumentException("conf cannot be null"); } validateHttpSubmitConf(conf); return (new HttpJobSubmit(conf, "mapreduce")).call(); }
/** * Submit a Pig job via HTTP. * * @param conf job configuration. * @param pigScriptFile pig script file. * @param pigArgs pig arguments string. * @return the job Id. * @throws OozieClientException thrown if the job could not be submitted. */ public String submitPig(Properties conf, String pigScriptFile, String[] pigArgs) throws IOException, OozieClientException { if (conf == null) { throw new IllegalArgumentException("conf cannot be null"); } if (pigScriptFile == null) { throw new IllegalArgumentException("pigScriptFile cannot be null"); } validateHttpSubmitConf(conf); conf.setProperty(XOozieClient.PIG_SCRIPT, readPigScript(pigScriptFile)); setStrings(conf, XOozieClient.PIG_OPTIONS, pigArgs); return (new HttpJobSubmit(conf, "pig")).call(); }
/** * Submit a Map/Reduce job via HTTP. * * @param conf job configuration. * @return the job Id. * @throws OozieClientException thrown if the job could not be submitted. */ public String submitMapReduce(Properties conf) throws OozieClientException { OozieClient.notNull(conf, "conf"); validateHttpSubmitConf(conf); return (new HttpJobSubmit(conf, "mapreduce")).call(); }
/** * Submit a Map/Reduce job via HTTP. * * @param conf job configuration. * @return the job Id. * @throws OozieClientException thrown if the job could not be submitted. */ public String submitMapReduce(Properties conf) throws OozieClientException { OozieClient.notNull(conf, "conf"); validateHttpSubmitConf(conf); return (new HttpJobSubmit(conf, "mapreduce")).call(); }
/** * Submit a Pig job via HTTP. * * @param conf job configuration. * @param pigScriptFile pig script file. * @param pigArgs pig arguments string. * @return the job Id. * @throws OozieClientException thrown if the job could not be submitted. */ public String submitPig(Properties conf, String pigScriptFile, String[] pigArgs) throws IOException, OozieClientException { if (conf == null) { throw new IllegalArgumentException("conf cannot be null"); } if (pigScriptFile == null) { throw new IllegalArgumentException("pigScriptFile cannot be null"); } validateHttpSubmitConf(conf); conf.setProperty(XOozieClient.PIG_SCRIPT, readPigScript(pigScriptFile)); setStrings(conf, XOozieClient.PIG_OPTIONS, pigArgs); return (new HttpJobSubmit(conf, "pig")).call(); }
/** * Submit a Sqoop job via HTTP. * * @param conf job configuration. * @param command sqoop command to run. * @param args arguments string. * @return the job Id. * @throws OozieClientException thrown if the job could not be submitted. */ public String submitSqoop(Properties conf, String[] command, String[] args) throws OozieClientException { OozieClient.notNull(conf, "conf"); OozieClient.notNull(command, "command"); validateHttpSubmitConf(conf); conf.setProperty(XOozieClient.SQOOP_COMMAND, serializeSqoopCommand(command)); setStrings(conf, XOozieClient.SQOOP_OPTIONS, args); return (new HttpJobSubmit(conf, OozieCLI.SQOOP_CMD)).call(); }
/** * Submit a Sqoop job via HTTP. * * @param conf job configuration. * @param command sqoop command to run. * @param args arguments string. * @return the job Id. * @throws OozieClientException thrown if the job could not be submitted. */ public String submitSqoop(Properties conf, String[] command, String[] args) throws OozieClientException { OozieClient.notNull(conf, "conf"); OozieClient.notNull(command, "command"); validateHttpSubmitConf(conf); conf.setProperty(XOozieClient.SQOOP_COMMAND, serializeSqoopCommand(command)); setStrings(conf, XOozieClient.SQOOP_OPTIONS, args); return (new HttpJobSubmit(conf, OozieCLI.SQOOP_CMD)).call(); }
OozieClient.notNull(conf, "conf"); OozieClient.notNull(scriptFile, "scriptFile"); validateHttpSubmitConf(conf);
OozieClient.notNull(conf, "conf"); OozieClient.notNull(scriptFile, "scriptFile"); validateHttpSubmitConf(conf);