title: Error while running Hive Action in Oozie
body: <p>I'm trying to run a hive action through Oozie. My <code>workflow.xml</code> is as follows:</p>
  
  <pre><code>&lt;workflow-app name='edu-apollogrp-dfe' xmlns="uri:oozie:workflow:0.1"&gt;
      &lt;start to="HiveEvent"/&gt;
      &lt;action name="HiveEvent"&gt;
              &lt;hive xmlns="uri:oozie:hive-action:0.2"&gt;
                      &lt;job-tracker&gt;${jobTracker}&lt;/job-tracker&gt;
                      &lt;name-node&gt;${nameNode}&lt;/name-node&gt;
                      &lt;configuration&gt;
                              &lt;property&gt;
                                      &lt;name&gt;oozie.hive.defaults&lt;/name&gt;
                                      &lt;value&gt;${hiveConfigDefaultXml}&lt;/value&gt;
                              &lt;/property&gt;
                      &lt;/configuration&gt;
                      &lt;script&gt;${hiveQuery}&lt;/script&gt;
                      &lt;param&gt;OUTPUT=${StagingDir}&lt;/param&gt;
              &lt;/hive&gt;
  
              &lt;ok to="end"/&gt;
              &lt;error to="end"/&gt;
      &lt;/action&gt;
  
      &lt;kill name='kill'&gt;
                      &lt;message&gt;Hive failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&lt;/message&gt;
      &lt;/kill&gt;
      &lt;end name='end'/&gt;
  </code></pre>
  
  <p></p>
  
  <p>And here is my job.properties file: </p>
  
  <pre><code>oozie.wf.application.path=${nameNode}/user/${user.name}/hiveQuery
  oozie.libpath=${nameNode}/user/${user.name}/hiveQuery/lib
  queueName=interactive
  
  #QA
  nameNode=hdfs://hdfs.bravo.hadoop.apollogrp.edu
  jobTracker=mapred.bravo.hadoop.apollogrp.edu:8021
  
  # Hive
  
  hiveConfigDefaultXml=/etc/hive/conf/hive-default.xml
  
  hiveQuery=hiveQuery.hql
  StagingDir=${nameNode}/user/${user.name}/hiveQuery/Output
  </code></pre>
  
  <p>When I run this workflow, I end up with this error:</p>
  
  <pre><code>ACTION[0126944-130726213131121-oozie-oozi-W@HiveEvent] Launcher exception: org/apache/hadoop/hive/cli/CliDriver
  java.lang.NoClassDefFoundError: org/apache/hadoop/hive/cli/CliDriver
  </code></pre>
  
  <p><code>Error Code: JA018</code></p>
  
  <p><code>Error Message: org/apache/hadoop/hive/cli/CliDriver</code></p>
  
  <p>I'm not sure what this error means. Where am I going wrong?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p><a href="http://archive.cloudera.com/cdh4/cdh/4/oozie/oozie-default.xml" rel="nofollow">This link</a> says error code <code>JA018</code> is: <code>JA018 is output directory exists error in workflow map-reduce action</code>. But in my case the output directory does not exist. This makes it all the more confusing</p>