hadoopworkflowoozieoozie-coordinator

oozie workflow should only run if there is an input hdfs file available


I set up coordinator <dataset> and <input-events> values and timeout. A coordinator is working fine as it'll check if an input file is available at a hdfs location only then it's running the workflow else timed out. I need the same behavior in the workflow like if I am running only a workflow without coordinator then workflow should behave same as of above-mentioned coordinator's behavior. I tried mapred.input.dir but workflow ran successfully. Is there any another way we could achieve the same. Workflow is a simple hello world job not a map-reduce job.


Solution

  • Wrokflow is for running jobs on-demand. The functionality you are looking for is not available in Workflow. That functionality is provided by the Coordinator.