Created
December 22, 2016 20:28
Oozie workflow for running sqoop import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<workflow-app name="My_Workflow" xmlns="uri:oozie:workflow:0.5"> | |
<start to="sqoop-52c0"/> | |
<kill name="Kill"> | |
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message> | |
</kill> | |
<action name="sqoop-52c0"> | |
<b><sqoop xmlns="uri:oozie:sqoop-action:0.2"> | |
<job-tracker>${jobTracker}</job-tracker> | |
<name-node>${nameNode}</name-node> | |
<command>sqoop import --connect jdbc:mysql://localhost/test --username root --password cloudera --table CUSTOMER --as-avrodatafile</command> | |
</sqoop> | |
</b> <ok to="End"/> | |
<error to="Kill"/> | |
</action> | |
<end name="End"/> | |
</workflow-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment