Hi Hrishikesh,
You can use args4j in your main class to parse the arguments.
It expects arguments like
-t <param> -p <param> where -t and -p are configured for different
fields of the class.
From oozie's workflow you can pass all the arguments in one <args/> tag
and parse them in your main class.
Regards,
On Wednesday 04 December 2013 01:27 AM, Hrishikesh P wrote:
Hi users, does anyone know if this functionality currently exists in Oozie?
On Mon, Dec 2, 2013 at 11:54 AM, Hrishikesh P <[email protected]>wrote:
Hi Oozie users,
I know that in java action, arguments can be passed to the main method
using the <arg> tag, but this makes the program dependent on the order of
the arguments and also makes argument validation unreliable (for example,
if there are two or more consecutive arguments of the same type). Is there
a way to set the required arguments in a java.util.properties map and pass
to the main method similar to what is available for capturing the output?
Thanks.