I am trying to get the current timestamp using the below in oozie:
<property>
<name>date</name>
<value>${coord:formatTime(coord:dateOffset(coord:nominalTime(), -1,
'DAY'), "yyyy-MM-dd")}
</value>
</property>
My hive action is:
<script>/abc/test.hql</script>
<param>DATE=${date}</param>
My Hive action fails saying:
EL_ERROR
No function is mapped to the name "coord:formatTime"
Any idea why it says so?I want my date as YYYY-MM-DD HH-MM-SS
coord
NameSpace contains all EL function that are valid inside a Coordinator XML script only. And I would bet that you tried it inside a Workflow script (but it's hard to know for sure because you did not care to show your script in context). – Redroot