My scenario: I have a spark submit that is running through shell script, this spark-job will pull 7 tables from oracle to hive. i have a other script which will generate the .dat files on the basis of the imported data from oracle.
My question here : is there any chance in the oozie where if the first job succeeds only the second job should run. Please ask if you any doubts in the question.
Thanks in advance
You can build dependency in Oozie. Please find below the pseudo code:
<workflow-app xmlns="uri:oozie:workflow:0.5" name="MYsimpleWF">
<global>
...
</global>
<action name=" ShellAction ">
<shell>
...
<exec>${EXEC}</exec>
<argument>A</argument>
<argument>B</argument>
<file>${EXEC}#${EXEC}</file>
</shell>
<ok to="SecondJOB"/>
<error to="fail"/>
</action>
<action name="SecondJOB">
<shell xmlns="uri:oozie:shell-action:0.2">
...
</shell>
<ok to="success"/>
<error to="fail"/>
</action>
<end name="done"/>
</workflow-app>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.