Hi Idris,
Could you please try this:
Add the following property to oozie-site.xml, restart oozie, and run your test
again and see if the action gets to "USER_RETRY" status.
<property>
<name>oozie.service.LiteWorkflowStoreService.user.retry.error.code</name>
<value>JA008,JA009,JA017,JA018,JA019,FS009,FS008</value>
</property>
Thanks
michelle
-----Original Message-----
From: Idris Ali [mailto:[email protected]]
Sent: Wednesday, March 28, 2012 5:38 AM
To: [email protected]; [email protected]
Subject: Retry of Action workflow doesn't work
Hi,
I am trying to test action retries based on this:
http://yahoo.github.com/oozie/releases/3.1.0/WorkflowFunctionalSpec.html#a18_User-Retry_for_Workflow_Actions_since_Oozie_3.1
Environment:
Oozie: apache oozie incubator 3.1.3 from
http://incubator.apache.org/oozie/Downloads.html.
Hadoop: cdh3u0
Steps to reproduce:
1. Modified the pig-action's workflow.xml available in oozie's examples:
to change the namespace URI to <workflow-app xmlns="uri:oozie:workflow:0.3"
name="pig-wf">
2. Added retry-max and retry-interval.
<action name="pig-node" retry-max="3" retry-interval="1"> 3. Commented
prepare tag, to introduce error: JA018
<!--<prepare>
<delete
path="${nameNode}/user/${wf:user()}/${examplesRoot}/output-data/pig"/>
</prepare>-->
4. oozie-default.xml remains as it is, but also tried by changing the value of
property oozie.service.LiteWorkflowStoreService.user.retry.max in
oozie-default.xml
However, when I run this, as expected we get Error JA018 in pig action.
But I do not see oozie retrying the failed action again, neither in oozie nor
in hadoop.
What additional settings are required to test retry actions? my requirement is
to retry subflow for 10 times and then proceed to next action.
Thanks,
-Idris