public JobSubmit(Properties conf, String jobActionDryrun) { super("POST", RestConstants.JOBS, "", prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_DRYRUN)); this.conf = notNull(conf, "conf"); }
public JobSubmit(Properties conf, String jobActionDryrun) { super("POST", RestConstants.JOBS, "", prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_DRYRUN, RestConstants.USER_PARAM, getUserName())); this.conf = notNull(conf, "conf"); this.generatedXml = null; }
/** * Set a HTTP header to be used in the WS requests by the workflow instance. * * @param name header name. * @param value header value. */ public void setHeader(String name, String value) { headers.put(notEmpty(name, "name"), notNull(value, "value")); }
public JobSubmit(Properties conf, String jobActionDryrun) { super("POST", RestConstants.JOBS, "", prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_DRYRUN)); this.conf = notNull(conf, "conf"); }
/** * Set a HTTP header to be used in the WS requests by the workflow instance. * * @param name header name. * @param value header value. */ public void setHeader(String name, String value) { headers.put(notEmpty(name, "name"), notNull(value, "value")); }
HttpJobSubmit(Properties conf, String jobType) { super("POST", RestConstants.JOBS, "", prepareParams(RestConstants.JOBTYPE_PARAM, jobType)); this.conf = notNull(conf, "conf"); }
/** * Set a HTTP header to be used in the WS requests by the workflow instance. * * @param name header name. * @param value header value. */ public void setHeader(String name, String value) { headers.put(notEmpty(name, "name"), notNull(value, "value")); }
/** * Set a HTTP header to be used in the WS requests by the workflow instance. * * @param name header name. * @param value header value. */ public void setHeader(String name, String value) { headers.put(notEmpty(name, "name"), notNull(value, "value")); }
public JobSubmit(Properties conf, String jobActionDryrun) { super("POST", RestConstants.JOBS, "", prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_DRYRUN, RestConstants.USER_PARAM, getUserName())); this.conf = notNull(conf, "conf"); this.generatedXml = null; }
HttpJobSubmit(Properties conf, String jobType) { super("POST", RestConstants.JOBS, "", prepareParams(RestConstants.JOBTYPE_PARAM, jobType)); this.conf = notNull(conf, "conf"); }
JobSubmit(Properties conf, boolean start) { super("POST", RestConstants.JOBS, "", (start) ? prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_START) : prepareParams()); this.conf = notNull(conf, "conf"); }
JobSubmit(String jobId, Properties conf) { super("PUT", RestConstants.JOB, notEmpty(jobId, "jobId"), prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_RERUN, RestConstants.USER_PARAM, getUserName())); this.conf = notNull(conf, "conf"); this.generatedXml = null; }
JobSubmit(String jobId, Properties conf) { super("PUT", RestConstants.JOB, notEmpty(jobId, "jobId"), prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_RERUN, RestConstants.USER_PARAM, getUserName())); this.conf = notNull(conf, "conf"); this.generatedXml = null; }
JobSubmit(final Properties conf, final boolean start, final String generatedXml) { super("POST", RestConstants.JOBS, "", (start) ? prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_START, RestConstants.USER_PARAM, getUserName()) : prepareParams(RestConstants.USER_PARAM, getUserName())); this.conf = notNull(conf, "conf"); this.generatedXml = generatedXml; }
JobSubmit(final Properties conf, final boolean start, final String generatedXml) { super("POST", RestConstants.JOBS, "", (start) ? prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_START, RestConstants.USER_PARAM, getUserName()) : prepareParams(RestConstants.USER_PARAM, getUserName())); this.conf = notNull(conf, "conf"); this.generatedXml = generatedXml; }
JobSubmit(Properties conf, boolean start) { super("POST", RestConstants.JOBS, "", (start) ? prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_START) : prepareParams()); this.conf = notNull(conf, "conf"); }
JobSubmit(String jobId, Properties conf) { super("PUT", RestConstants.JOB, notEmpty(jobId, "jobId"), prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_RERUN)); this.conf = notNull(conf, "conf"); }
JobSubmit(String jobId, Properties conf) { super("PUT", RestConstants.JOB, notEmpty(jobId, "jobId"), prepareParams(RestConstants.ACTION_PARAM, RestConstants.JOB_ACTION_RERUN)); this.conf = notNull(conf, "conf"); }
/** * 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(); }