You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@oozie.apache.org by Kasa V Varun Tej <ka...@gmail.com> on 2013/08/27 11:37:06 UTC
Oozie capture output feature understanding issue
Hi All,
So im trying to capture output of a shell action in the subsequent email
action. When i'm trying to do so i'm using the hadoop EL function
actionData('actionName'). But in the email the value is getting printed as,
lets say the shell action produces output 'X'. In the email the value is
getting printed as 'X='. Am i doing it wrong? Where am i going wrong? I
also read in several other posts about the key which we pass to the
actionData EL other than the action name, if thats what i'm missing, Please
do guide me to accomplish this action.
Thank You guys,
Kasa.
Re: Oozie capture output feature understanding issue
Posted by Robert Kanter <rk...@cloudera.com>.
Hi Kasa,
actionData('actionName') returns an array of key-value pairs. You'd want
to do actionData('actionName')['keyName'] to get the value, and you action
should produce something in java properties format, i.e. "key=value".
I wrote a blog post a while back about using the Shell and Java actions; it
goes through an example workflow and includes capturing data from an action
and using it in a workflow with the actionData El function. If you need
further explanation, I think you will find it useful:
http://blog.cloudera.com/blog/2013/03/how-to-use-oozie-shell-and-java-actions/
thanks
- Robert
On Tue, Aug 27, 2013 at 2:37 AM, Kasa V Varun Tej <ka...@gmail.com>wrote:
> Hi All,
>
> So im trying to capture output of a shell action in the subsequent email
> action. When i'm trying to do so i'm using the hadoop EL function
> actionData('actionName'). But in the email the value is getting printed as,
> lets say the shell action produces output 'X'. In the email the value is
> getting printed as 'X='. Am i doing it wrong? Where am i going wrong? I
> also read in several other posts about the key which we pass to the
> actionData EL other than the action name, if thats what i'm missing, Please
> do guide me to accomplish this action.
>
> Thank You guys,
> Kasa.
>