Implementing a Hive action job using Oozie
In this recipe, we are going to take a look at how to use a Hive action in order to automate Hive query executions.
Getting ready
To perform this recipe, you should have a running Hadoop cluster as well as the latest version of Oozie and Hive installed on it.
How to do it...
Any Oozie job execution consists of two important things, workflow.xml
and a properties file. The workflow.xml
file is where we need to specify the flow of execution. The following is an example of workflow.xml
, which uses the Hive action:
<workflow-app xmlns="uri:oozie:workflow:0.2" name="hive-wf"> <start to="hive-node"/> <action name="hive-node"> <hive xmlns="uri:oozie:hive-action:0.2"> <job-tracker>${jobTracker}</job-tracker> <name-node>${nameNode}</name-node> ...
Get Hadoop: Data Processing and Modelling now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.