如何设置Oozie协调器输入事件,可以在那里?请填写???对于以下内容:
<coordinator-app name="${jobName}" frequency="${coord:days(1)}" start="${startTime}" end="${endTime}" timezone="${timezone}" xmlns="uri:oozie:coordinator:0.2">
<controls>
<timeout>-1</timeout>
<concurrency>30</concurrency>
<execution>FIFO</execution>
</controls>
<datasets>
<dataset name="myData" frequency="???" initial-instance="???" timezone="UTC">
<uri-template>/time-independent/path/that/may/or/maynot/be/there</uri-template>
</dataset>
</datasets>
<input-events>
<data-in name="myInput" dataset="myData">
<instance>???</instance>
</data-in>
</input-events>
<action>
<workflow>
<app-path>${myAppPath}</app-path>
<configuration>
<property>
<name>myInput</name>
<value>${coord:dataIn('myInput')}</value>
</property>
</configuration>
</workflow>
</action>
</coordinator-app>
谢谢, 阿尔瓦罗
答案 0 :(得分:1)
数据集频率值将为 $ {coord:days(1)} ,因为您希望每天安排它。
starttime将是您要启动作业时的值。例如。 2017-01-22T12:00Z。
因此,更新的协调器xml将是这样的:
cat test.xml | sed "s;<parties>;\do_opentag ;" | sed "s;</parties>;\do_closetag ;" | awk 'BEGIN { doPrint = 1; } /do_opentag/ { doPrint = 0; print $0; } /do_closetag/ { doPrint = 1; } { if (doPrint) print $0; }' | grep -v 'do_opentag\|do_closetag'
<?xml version="1.0" encoding="UTF-8"?>
<patent-document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" pid="58326519" doc-generation-date="2016-10-11">
<bibliographic-data>
<application-reference>
<pan>46422</pan>
</application-reference>
<publication-reference>
<publication-office>KR</publication-office>
<patent-publication-date>
<year>2016</year>
<month>10</month>
<day>11</day>
</patent-publication-date>
</publication-reference>
<parties>
<applicants>
<applicant sequence="1">
<name lang="EN"></name>
<address>
<location-of-work>KR</location-of-work>M
</address>
</applicant>
</applicants>
</parties>
</bibliographic-data>
<vendor>Any</vendor>
<document-translation-date>2016-11-24</document-translation-date>M
<invention-title lang="EN">Cell preservation container for liquid-based cell inspection</invention-title>
<abstract lang="EN">The present invention relates to a liquid for discharging liquid containing cells and cell may be a sampling which is simply eminent generated in </abstract>
<comment lang="EN"></comment>
</patent-document>