Created on 08-04-2017 02:18 PM - edited 09-16-2022 05:03 AM
Oozie example ob for java-main app invokes a MR2 job but then the action status for the java actio ndoes not get updated to OK immediately though the MR job is completed.
It takes like 10 minutesi n oozie to update the action status and then end the job successfully.
We are using CDH 5.11.
Created 09-06-2017 12:21 AM
Created 09-06-2017 05:55 AM
Harsh,
I raised a support ticket and I was given the knowledge article which says about creating two groups for oozie since HA was enabled. The solution did work. Thanks for your response.
Created 02-27-2018 11:04 PM
Hi
Can I get a link to the support article? Or can you let me know the fix that was suggested?
Thanks.
Created 03-19-2018 07:37 AM
Hi Lal,
I finally found the link. Cloudera had actually changed the url and updated the article.
Regards,
Nithin
Created 01-23-2020 05:11 AM
Hi,
I have same issues, can you describe .
What exactly did you do for fix this issue (you link to support ticket does't open)
Created 01-23-2020 07:35 AM
It's a bug in Oozie. CoordActionCheckXCommand doesn't take care of SUSPENDED state. It only handles SUCCEEDED, FAILED and KILLED.
protected Void execute() throws CommandException { try { InstrumentUtils.incrJobCounter(getName(), 1, getInstrumentation()); Status slaStatus = null; CoordinatorAction.Status initialStatus = coordAction.getStatus(); if (workflowJob.getStatus() == WorkflowJob.Status.SUCCEEDED) { coordAction.setStatus(CoordinatorAction.Status.SUCCEEDED); // set pending to false as the status is SUCCEEDED coordAction.setPending(0); slaStatus = Status.SUCCEEDED; } else { if (workflowJob.getStatus() == WorkflowJob.Status.FAILED) { coordAction.setStatus(CoordinatorAction.Status.FAILED); slaStatus = Status.FAILED; // set pending to false as the status is FAILED coordAction.setPending(0); } else { if (workflowJob.getStatus() == WorkflowJob.Status.KILLED) { coordAction.setStatus(CoordinatorAction.Status.KILLED); slaStatus = Status.KILLED; // set pending to false as the status is KILLED coordAction.setPending(0); } else { LOG.warn("Unexpected workflow " + workflowJob.getId() + " STATUS " + workflowJob.getStatus()); coordAction.setLastModifiedTime(new Date()); CoordActionQueryExecutor.getInstance().executeUpdate( CoordActionQueryExecutor.CoordActionQuery.UPDATE_COORD_ACTION_FOR_MODIFIED_DATE, coordAction); return null; } } }