I have created an Oozie workflow that uses the script action. The script that it calls has two mandatory parameters and several optional parameters. What is the correct way to handle optional parameters in an Oozie workflow?
oozie job -config job.properties -run -DMandatory1 a -DMandatory2 b -DOptional1 c
I can not list the parameters in the workflow XML (Optional2, Optional3,ect) because Oozie will error out stating that the parameter does not exist. Do I need create multiple workflows and create some logic prior to calling the Oozie script that would allow for each option?