That sounds strange. Can you enable debug logging on your hadoop cluster and
check if any logs indicate reasons for the delay?
On Thursday, May 7, 2015 5:31 AM, Saurav Sinha <[email protected]>
wrote:
Hi,
I am trying to run a ssh action from mu hadoop cluster to a remote machine.
But it is taking more then 10 min to come back and pick another step.
Can any one please help me with it.
<workflow-app name="RunPipelineWorkflowAction"
xmlns="uri:oozie:workflow:0.3">
<start to="getDateAction"/>
<action name="getDateAction">
<ssh xmlns="uri:oozie:ssh-action:0.2">
<host>${userName}@${focusNodeLogin}</host>
<command>${shellScriptPath}/getTimeStamp.sh</command>
<capture-output/>
</ssh>
<ok to="sendEmail"/>
<error to="killJobAction"/>
</action>
<action name="sendEmail">
<email xmlns="uri:oozie:email-action:0.1">
<to>${emailToAddress}</to>
<subject>Output of workflow ${wf:id()}</subject>
<body>Work flow compleated successfully
${wf:actionData('getDateAction')['runTimeStamp']}</body>
</email>
<ok to="end"/>
<error to="killJobAction"/>
</action>
<kill name="killJobAction">
<message>"Killed job due to error:
${wf:errorMessage(wf:lastErrorNode())}"</message>
</kill>
<end name="end" />
</workflow-app>
This is my wrokflow.xml
Shell script is to be run is:
runTimeStamp=`date +%Y-%m-%d-%H-%M-%S`
echo "runTimeStamp=$runTimeStamp"
--
Thanks,
Saurav Sinha
*Software Engineer II*
*M*: +91 9643055174
238 OKHLA PHASE III, NEW DELHI 110 020, INDIA
Download Our App
[image: A]
<https://play.google.com/store/apps/details?id=com.snapdeal.main&utm_source=mobileAppLp&utm_campaign=android>
[image: A]
<https://itunes.apple.com/in/app/snapdeal-mobile-shopping/id721124909?ls=1&mt=8&utm_source=mobileAppLp&utm_campaign=ios>
[image: W]
<http://www.windowsphone.com/en-in/store/app/snapdeal/ee17fccf-40d0-4a59-80a3-04da47a5553f>