hadoop - How to create a variable with EL expression to use in all the actions oozie workflow? -


i want create variable should available actions in oozie workflow. have tried create shown below. el expression not getting evaluated resulting in variable current_ts value el expression itself. can please throw light on this?

<workflow-app xmlns="uri:oozie:workflow:0.4" name="no-op-wf">   <parameters>     <property>       <name>current_ts</name>       <value>${replaceall((replaceall((replaceall((timestamp()),"-","")),"t","_")),":","")}</value>     </property>   </parameters>   <start to="test"/>   <kill name="test">     <!--message show expression works if used here>timestamp - [${replaceall((replaceall((replaceall((timestamp()),"-","")),"t","_")),":","")}</message-->     <message>timestamp - ${current_ts}</message> <!-- print expression not evaluate -->   </kill>   <end name="end"/> </workflow-app> 

in parameterization of workflows it's mentioned :

el expressions can used in configuration values of action , decision nodes. can used in xml attribute values , in xml element , attribute values.

they cannot used in xml element , attribute names. cannot used in name of node , cannot used within transition elements of node.

but can use in coordinator


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -