You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@oozie.apache.org by apratim sharma <ap...@gmail.com> on 2015/02/09 20:34:21 UTC

Accessing all oozie properties from java action.

Hi,
I have a simple question, to which I could not get answer in any of oozie
user documentation.
How can we pass all the properties to a oozie java action.

When we run oozie we give command oozie job - run -config job.properties.
As per my understanding this job.properties is submitted to oozie server
and oozie server uses properties to substitute $ variables in workflow.xml.
That works fine.

But is any any way we can access all the properties inside workflow as it
is.
Our main requirement is to pass set of properties to a java job as it is
without oozie validating/substituting them.
Is this possible?

Can we access to Properties(Map) inside workflow action nodes using some EL
and use EL function "toPropertiesStr(Map)" and pass this string as arg to
our java action in workflow.

Thanks
Apratim