Skip to content

Instantly share code, notes, and snippets.

@developer-sdk
Created February 13, 2019 12:48
Show Gist options
  • Select an option

  • Save developer-sdk/fd0a0a960d2495704c84ff2b24b0acbd to your computer and use it in GitHub Desktop.

Select an option

Save developer-sdk/fd0a0a960d2495704c84ff2b24b0acbd to your computer and use it in GitHub Desktop.
oozie workflow hdfs example
<workflow-app xmlns="uri:oozie:workflow:0.5" name="workflow-example">
<parameters>
<property>
<name>param1</name>
<value>hdfs://url/</value>
</property>
</parameters>
<start to="decision" />
<decision name="decision">
<switch>
<case to="action1">
${ fs:dirSize(param1) gt 0 }
</case>
<default to="action_default" />
</switch>
</decision>
<action name="action_default">
<action name="action1">
</workflow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment