HI Serega,

As Mohammad explained, you just need to make changes to your start and end
instances.
Considering your coord start time is 05:00 (every day it runs at this time
as the coord frequency is daily.

<start-instance>${coord:current(-28)}</start-instance>
<end-instance>${coord:current(-1)</end-instance>

so everyday, the coord instances resolves to (05:00 Minus 28:00 hour)
yesterday's 00:00 hour to (05:00 Minus 01:00) today's 04:00th hour

More details here:
https://oozie.apache.org/docs/4.1.0/CoordinatorFunctionalSpec.html#a6.6.1._coord:currentint_n_EL_Function_for_Synchronous_Datasets

Thanks,
-Idris



On Sun, May 10, 2015 at 12:31 AM, Serega Sheypak <[email protected]>
wrote:

> Hi, the problem is that I need to feed last 24 hours + 4 hours more.
> Imagine, I start my coord at 05 hour of day
> I need to feed 00..04 hours of current day and 00-23 hours of previous day,
> 28 hours totally.
> How can I set that oozie feeds exact hours range?
>
> 2015-05-08 21:56 GMT+03:00 Mohammad Islam <[email protected]>:
>
> > Hi Serega,I didn't fully understand your question.I assume: your job runs
> > "daily" and processes 24 instances of "hourly" data.You have to do the
> > followings:
> > 1. define a dataset in <datasets> for hourly data.2. define a "data-in"
> in
> > "input-event" section. In <data-in>" you will need to mention the start
> and
> > end instance. you can write
> >
> <start-instance>${coord:current(-23)}</start-instance><end-instance>${coord:current(0)</end-instance>
> > HTH.
> > Regards,Mohammad
> >
> >
> >      On Friday, May 8, 2015 4:33 AM, Serega Sheypak <
> > [email protected]> wrote:
> >
> >
> >  Hi, I have a coordinator. It wakes up each day and consumes hourly-based
> > paths.
> > The problem is that I coordinator should consume these paths:
> > /my/path/2015/05/20
> > /my/path/2015/05/21
> > /my/path/2015/05/22
> > ...
> > /my/path/2015/06/04
> >
> > How can I specify these instances using
> >
> > <start-instance />
> > <end-instance />
> >
> >
> >
> >
>

Reply via email to