Created
January 20, 2019 03:14
-
-
Save staticor/814ecaee187f3460b0dd6d628c60cc0e to your computer and use it in GitHub Desktop.
oozie workflow test
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 xmlns = "uri:oozie:workflow:0.4" name = "simple-Workflow"> | |
<start to = "fork_node" /> | |
<fork name = "fork_node"> | |
<path start = "Create_External_Table"/> | |
<path start = "Create_orc_Table"/> | |
</fork> | |
<action name = "Create_External_Table"> | |
<hive xmlns = "uri:oozie:hive-action:0.4"> | |
<job-tracker>xyz.com:8088</job-tracker> | |
<name-node>hdfs://rootname</name-node> | |
<script>hdfs_path_of_script/external.hive</script> | |
</hive> | |
<ok to = "join_node" /> | |
<error to = "kill_job" /> | |
</action> | |
<action name = "Create_orc_Table"> | |
<hive xmlns = "uri:oozie:hive-action:0.4"> | |
<job-tracker>xyz.com:8088</job-tracker> | |
<name-node>hdfs://rootname</name-node> | |
<script>hdfs_path_of_script/orc.hive</script> | |
</hive> | |
<ok to = "join_node" /> | |
<error to = "kill_job" /> | |
</action> | |
<join name = "join_node" to = "Insert_into_Table"/> | |
<action name = "Insert_into_Table"> | |
<hive xmlns = "uri:oozie:hive-action:0.4"> | |
<job-tracker>xyz.com:8088</job-tracker> | |
<name-node>hdfs://rootname</name-node> | |
<script>hdfs_path_of_script/Copydata.hive</script> | |
<param>database_name</param> | |
</hive> | |
<ok to = "end" /> | |
<error to = "kill_job" /> | |
</action> | |
<kill name = "kill_job"> | |
<message>Job failed</message> | |
</kill> | |
<end name = "end" /> | |
</workflow-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment