I'm struggeling on the following problem using variables in an Oozie workflow definition checking if a specific file was created. It is working with absolute path like the following, but I cannot use an absolute path:
${fs:exists('/mypath/file.hql')}
In my case, the nameNode and the workflow id has to be replaced but in the decision node this is not working. The variables are not replaced, what is the correct syntax to do this?
<decision name="check-hql-file-created">
<switch>
<case to="hive-exec-il2rl-hql4baseentity">
${fs:exists(${nameNode}'/tmp/oozie_tmp/'${wf:id()}'.hql')}
</case>
<default to="il2rl-loop"/>
</switch>
</decision>
FILE_PATH
cannot be${FILE_PATH}
in the EL expression, it must beFILE_PATH
. – Charland