This works - thank you very much Michelle!
________________________________ From: Vrushali C <[email protected]> To: "[email protected]" <[email protected]>; "[email protected]" <[email protected]> Sent: Tuesday, August 14, 2012 9:21 PM Subject: Re: Getting output of a script run through oozie Awesome, thanks Michelle - I will give this a try and let you know. -Vrushali ________________________________ From: Michelle Chiang <[email protected]> To: "[email protected]" <[email protected]>; Vrushali C <[email protected]> Sent: Tuesday, August 14, 2012 3:58 PM Subject: RE: Getting output of a script run through oozie Hi Vrushali, You may use shell action in oozie 3.2.0. http://incubator.apache.org/oozie/docs/3.2.0-incubating/docs/DG_ShellActionExtension.html at the end of the the shell action, use <capture-output/>. In the perl/shell script, print/echo output as key-value pair. e.g., echo "Status=PASS" Then, in following action of the same workflow.xml, use e.g., wf:actionData('shell-sh')['Status'] to view the output. Hope it helps. Thanks michelle -----Original Message----- From: Vrushali C [mailto:[email protected]] Sent: Tuesday, August 14, 2012 1:52 PM To: [email protected] Subject: Getting output of a script run through oozie Hi We have a series of jobs which we run through the oozie workflow and at the end I would like to run a perl/shell script that calculates some stats on the output. I wanted to run it as part of the oozie workflow. I have been searching in this mail archives for how to capture the output of a script that I wish to run through oozie. I checked out http://tech.groups.yahoo.com/group/Oozie-users/message/1914 and https://github.com/yahoo/oozie/wiki/Oozie-WF-use-cases but I did not understand how the output from that script would get written somewhere to hdfs. Any pointers on how to do this would be appreciated! thanks Vrushali
