Member since
02-09-2017
4
Posts
2
Kudos Received
0
Solutions
02-15-2017
09:16 PM
Thanks @peeyush . I was able to use global property section to create a global variable and reference it in different actions in workflow. But it didn't work in the same workflow, I had to pass it to a sub workflow as a configuration property from another workflow. <global>
<configuration>
<property>
<name>run_ts</name>
<value>${replaceAll((replaceAll((replaceAll((timestamp()),"-","")),"T","_")),":","")}</value>
</property>
</configuration>
</global>
<action name="coaching-tbl-subwf">
<sub-workflow>
<app-path>/data/app/subwf.xml</app-path>
<propagate-configuration/>
</configuration>
</sub-workflow>
<ok to="join-node"/>
<error to="fail"/>
</action>
... View more
02-13-2017
04:29 PM
1 Kudo
I want to create a variable that should be available to all the actions in the Oozie workflow. I have tried to create it as shown below. But EL expression is not getting evaluated resulting in variable current_ts value as EL expression itself. Can somebody please throw some 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 Just to show that this expression works if used here>Timestamp - [${replaceAll((replaceAll((replaceAll((timestamp()),"-","")),"T","_")),":","")}</message-->
<message>Timestamp - ${current_ts}</message> <!-- this will print expression but not evaluate it -->
</kill>
<end name="end"/>
</workflow-app>
... View more
Labels:
- Labels:
-
Apache Hadoop
-
Apache Hive
-
Apache Oozie
02-10-2017
12:54 AM
@Kuldeep Kulkarni we are using hiveserver2, can we use beeline cli instead of hivecli for the same setup?
... View more