You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@oozie.apache.org by Boris Shulman <sh...@gmail.com> on 2012/08/07 14:28:55 UTC
Oozie custom action configuration
Hi,
It is stated in the docs that it is possible to provide config to a custom
action via oozie-site.xml.The question is how do I access that config from
within the action?
>From the documentation:
Any configuration properties to be made available to this class should
also be added to oozie-site.xml. The convention to be followed for
naming these properties is 'oozie.action.[ActionName].property.name
Regards.
Re: Oozie custom action configuration
Posted by Harsh J <ha...@cloudera.com>.
Hi Boris,
Check out how the EmailActionExecutor email-action-extension does it:
http://svn.apache.org/viewvc/incubator/oozie/trunk/core/src/main/java/org/apache/oozie/action/email/EmailActionExecutor.java?view=markup
In particular, see lines 115 to 121 where we pick up the action's
configuration (from the oozie-site.xml).
On Tue, Aug 7, 2012 at 5:58 PM, Boris Shulman <sh...@gmail.com> wrote:
> Hi,
>
> It is stated in the docs that it is possible to provide config to a custom
> action via oozie-site.xml.The question is how do I access that config from
> within the action?
>
> From the documentation:
>
> Any configuration properties to be made available to this class should
> also be added to oozie-site.xml. The convention to be followed for
> naming these properties is 'oozie.action.[ActionName].property.name
>
>
>
>
> Regards.
--
Harsh J