In this recipe, we are going to take a look at how to use a Hive action in order to automate Hive query executions.
To perform this recipe, you should have a running Hadoop cluster as well as the latest version of Oozie and Hive installed on 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> <configuration> <property> <name>mapred.job.queue.name</name> <value>${queueName}</value> </property> </configuration> <...