2014-11-03 3 views
1

시나리오 : 입력 파일 :이 File1.log, 나는 위의 두 입력 파일로 만들 수에 present.Is이있는 경우에만 코디네이터를 트리거 할 파일 감시자

을 file2.log 파일 감시자?

미리 감사드립니다.

답변

2

예. 당신은 확실히 이것을 할 수 있습니다. Z 디 네이터 응용 프로그램의 입력 이벤트는 Z 디 네이터 조치를 실행하는 데 필요한 입력 조건을 지정합니다. 다음은 GITHUB의 예입니다. https://github.com/yahoo/oozie/wiki/Oozie-Coord-Use-Cases

$ cat coordinator.xml 
<coordinator-app name="MY_APP" frequency="1440" start="2009-02-01T00:00Z" end="2009-02-07T00:00Z" timezone="UTC" xmlns="uri:oozie:coordinator:0.1"> 
    <datasets> 
     <dataset name="input1" frequency="60" initial-instance="2009-01-01T00:00Z" timezone="UTC"> 
     <uri-template>hdfs://localhost:9000/tmp/revenue_feed/${YEAR}/${MONTH}/${DAY}/${HOUR}</uri-template> 
     <done-flag>trigger.dat</done-flag> 
     </dataset> 
    </datasets> 
    <input-events> 
     <data-in name="coordInput1" dataset="input1"> 
      <start-instance>${coord:current(-23)}</start-instance> 
      <end-instance>${coord:current(0)}</end-instance> 
     </data-in> 
    </input-events> 
    <action> 
     <workflow> 
     <app-path>hdfs://localhost:9000/tmp/workflows</app-path> 
     </workflow> 
    </action>  
</coordinator-app> 
+0

감사합니다. Satha! 나는 이것을 시도하고 업데이트 할 것이다. – Learner