Hi there,

yes, <done-flag> should support user defined variable substitution, as you
can see in TestCoordSubmitXCommand#testSubmitWithDoneFlag()
<https://github.com/apache/oozie/blob/master/core/src/test/java/org/apache/oozie/command/coord/TestCoordSubmitXCommand.java#L901-L933>
.

Further usage of <dataset> and <done-flag> please see the Oozie Coordinator
Functional Specification
<https://oozie.apache.org/docs/4.3.0/CoordinatorFunctionalSpec.html#a5.4._Dataset_Definitions>
.

Regards,

Andras

On Sun, Oct 1, 2017 at 6:41 AM, 罗 辉 <luo...@zetyun.com> wrote:

> Hi there:
>      Does the <doneflag> of input event support batch number and other
> variable? How to set the doneflag of input event with batch number and
> other variable?
> For example, I have a multi-batch job, at about 5minutes interval, every
> batch has a trigger file which follows below naming rule:
> ${uppersystem}_${batchno}_ trigger
>
> Here is a part of my coordinator.xml
>     <datasets>
>         <dataset name="input1" frequency="${coord:minutes(5)}"
> initial-instance="2017-10-01T00:00Z" timezone="UTC">
>             <uri-template>${inputPath}/${tableName}/${YEAR}${MONTH}${
> DAY}</uri-template>
>                      <done-flag>${uppersystem}_${batchno}_
> trigger</done-flag>
>         </dataset>
>         <dataset name="output1" frequency="${coord: minutes(5)}"
> initial-instance="2017-10-01T01:00Z" timezone="UTC">
>             <uri-template>${outputPath}/${tableName}/${YEAR}${MONTH}${
> DAY}</uri-template>
>         </dataset>
> </datasets>
>     <input-events>
>         <data-in name="input-1" dataset=" input1">
>             <instance>${coord:current(0)}</instance>
>         </data-in>
>     </input-events>
>     <output-events>
>         <data-out name="output" dataset=" output1">
>             <instance>${coord:current(0)}</instance>
>         </data-out>
>     </output-events>
>
>
>
> Any ideas is welcome
>
>
> Hui Luo
>
>
>

Reply via email to