public Void call() throws Exception { String oozieUrl = getContextURL(); OozieClient wc = new OozieClient(oozieUrl); Properties conf = wc.createConfiguration(); conf.setProperty(OozieClient.USER_NAME, "x"); wc.kill(MockDagEngineService.JOB_ID + "1" + MockDagEngineService.JOB_ID_END); assertEquals(RestConstants.JOB_ACTION_KILL, MockDagEngineService.did); return null; } });
public void kill(Context context, WorkflowAction action) throws ActionExecutorException { LOG.info("Killing action"); try { String subWorkflowId = action.getExternalId(); String oozieUri = action.getTrackerUri(); if (subWorkflowId != null && oozieUri != null) { OozieClient oozieClient = getWorkflowClient(context, oozieUri); oozieClient.kill(subWorkflowId); } context.setEndData(WorkflowAction.Status.KILLED, getActionSignal(WorkflowAction.Status.KILLED)); } catch (Exception ex) { throw convertException(ex); } }
public void kill(Context context, WorkflowAction action) throws ActionExecutorException { LOG.info("Killing action"); try { String subWorkflowId = action.getExternalId(); String oozieUri = action.getTrackerUri(); if (subWorkflowId != null && oozieUri != null) { OozieClient oozieClient = getWorkflowClient(context, oozieUri); oozieClient.kill(subWorkflowId); } context.setEndData(WorkflowAction.Status.KILLED, getActionSignal(WorkflowAction.Status.KILLED)); } catch (Exception ex) { throw convertException(ex); } }
response.addException(qe.getBottomQueryException()); try { oozieClient.kill(jobID);
wfClient.start(jobId1); wfClient.kill(jobId1);
wfClient.kill(jobId1);
wfClient.kill(wfClient.getJobInfo(jobId).getActions().get(1).getExternalId());
wclient.kill(coordClient.getCoordActionInfo(actionId).getExternalId());
wfClient.kill(wfId); waitFor(15 * 1000, new Predicate() { public boolean evaluate() throws Exception {
wfClient.kill(wfId); waitFor(15 * 1000, new Predicate() { public boolean evaluate() throws Exception {
wclient.kill(coordClient.getCoordActionInfo(actionId).getExternalId());
wfClient.kill(wfId);