I have an oozie action that has a defined input path. In case this path does not exist I want to set the input to some default path.
Is there a way to have the path depending on a condition? I know I can replicate the action for each possible input and have a condition that routes to the correct action. However, this is not scalable when having many conditional paths.
Oozie allows you to use EL expressions, which includes the conditional operator ?:
. This makes it fairly straight-forward to implement a default path when the specified path does not exist:
${fs:exists(specified_path) ? specified_path : default_path}