Hi,

I have a question regarding the firstNotNull function and in general about
undefined variables in oozie.

I have the following snippet of code in my oozie workflow

    <property>
      <name>mapred.job.queue.name</name>
      <value>${firstNotNull(defaultQueue, "default")}</value>
     </property>

I wanted to have the default queue to be configurable based on the
environment. For one of the environments I want to use "default" and for
the rest I want to set the value from the CLI.

If I do not set any value I get the EL Error regarding "defaultQueue"
variable.

I even tried the JSP EL Expression

{(empty defaultQueue) then "default" else
defaultQueue}

That did not work either.

Am I missing something here??

Kishore

Reply via email to