Package org.apache.oozie.command.wf

Examples of org.apache.oozie.command.wf.SubmitXCommand.call()


        validateSubmitConfiguration(conf);

        try {
      String jobId;
      SubmitXCommand submit = new SubmitXCommand(conf, getAuthToken());
      jobId = submit.call();
      if (startJob) {
        start(jobId);
      }
      return jobId;
        }
View Full Code Here


     */
    @Override
    public String dryRunSubmit(Configuration conf) throws BaseEngineException {
        try {
            SubmitXCommand submit = new SubmitXCommand(true, conf, getAuthToken());
            return submit.call();
        } catch (CommandException ex) {
            throw new DagEngineException(ex);
        }
    }
}
View Full Code Here

       
        try {
            String jobId;
            if (useXCommand) {
                SubmitXCommand submit = new SubmitXCommand(conf, getAuthToken());
                jobId = submit.call();
            }
            else {
                SubmitCommand submit = new SubmitCommand(conf, getAuthToken());
                jobId = submit.call();
            }
View Full Code Here

                SubmitXCommand submit = new SubmitXCommand(conf, getAuthToken());
                jobId = submit.call();
            }
            else {
                SubmitCommand submit = new SubmitCommand(conf, getAuthToken());
                jobId = submit.call();
            }
            if (startJob) {
                start(jobId);
            }
            return jobId;
View Full Code Here

        validateSubmitConfiguration(conf);

        try {
      String jobId;
      SubmitXCommand submit = new SubmitXCommand(conf, getAuthToken());
      jobId = submit.call();
      if (startJob) {
        start(jobId);
      }
      return jobId;
        }
View Full Code Here

        validateSubmitConfiguration(conf);

        try {
            String jobId;
            SubmitXCommand submit = new SubmitXCommand(conf);
            jobId = submit.call();
            if (startJob) {
                start(jobId);
            }
            return jobId;
        }
View Full Code Here

    public String submitJobFromCoordinator(Configuration conf, String parentId) throws DagEngineException {
        validateSubmitConfiguration(conf);
        try {
            String jobId;
            SubmitXCommand submit = new SubmitXCommand(conf, parentId);
            jobId = submit.call();
            start(jobId);
            return jobId;
        }
        catch (CommandException ex) {
            throw new DagEngineException(ex);
View Full Code Here

     */
    @Override
    public String dryRunSubmit(Configuration conf) throws BaseEngineException {
        try {
            SubmitXCommand submit = new SubmitXCommand(true, conf);
            return submit.call();
        } catch (CommandException ex) {
            throw new DagEngineException(ex);
        }
    }

View Full Code Here

        cal.add(Calendar.MINUTE, 30); // as per the sla xml
        String expectedEnd = DateUtils.formatDateOozieTZ(cal.getTime());

        // Call SubmitX
        SubmitXCommand sc = new SubmitXCommand(conf);
        String jobId = sc.call();
        SLACalcStatus slaEvent = slas.getSLACalculator().get(jobId);
        assertEquals(jobId, slaEvent.getId());
        assertEquals("test-wf-job-sla", slaEvent.getAppName());
        assertEquals(AppType.WORKFLOW_JOB, slaEvent.getAppType());
        assertEquals(nominalTime, DateUtils.formatDateOozieTZ(slaEvent.getNominalTime()));
View Full Code Here

        String nominalTime = DateUtils.formatDateOozieTZ(nominal);
        conf.set("nominal_time", nominalTime);

        // Call SubmitX
        SubmitXCommand sc = new SubmitXCommand(conf);
        String jobId = sc.call();
        String actionId = jobId+"@grouper";

        slas.getSLACalculator().clear();
        JPAService jpaService = Services.get().get(JPAService.class);
        WorkflowJobBean wfBean = jpaService.execute(new WorkflowJobGetJPAExecutor(jobId));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.