You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@oozie.apache.org by 王猛 <sj...@gmail.com> on 2015/10/28 03:48:56 UTC

does time($HOUR/YEAR) in oozie dataset support calculate such as $(HOUR-4)?

For example ,  URL in dataset is  “/${HOUR}" and current HOUR=10:00 , can
we use it to generate time 6:00 ?  such as  ${HOUR-4} or  ${HOUR}-4 ? or
other methods ?  Thanks.

Re: does time($HOUR/YEAR) in oozie dataset support calculate such as $(HOUR-4)?

Posted by Mona Chitnis <ch...@yahoo-inc.com.INVALID>.
That's an interesting use-case, but not supported this way yet.The EL constants HOUR,DAY,MINUTE etc will resolve to either the nominal time of the coordinator action or the current time, based on whether your dependencies are using coord:current(n) or coord:latest(n) respectively. You might have to adjust your 'n' value to say e.g. coord:current(-4) to achieve the desired effect.
Mona
 


     On Tuesday, October 27, 2015 7:49 PM, 王猛 <sj...@gmail.com> wrote:
   

 For example ,  URL in dataset is  “/${HOUR}" and current HOUR=10:00 , can
we use it to generate time 6:00 ?  such as  ${HOUR-4} or  ${HOUR}-4 ? or
other methods ?  Thanks.