title: How to configure Hive to use Spark?
body: <p>I have a problem using Hive on Spark. I have installed a single-node HDP 2.1 (Hadoop 2.4) via Ambari on my CentOS 6.5. I'm trying to run Hive on Spark, so I used this instructions: </p>
  
  <p><a href="https://cwiki.apache.org/confluence/display/Hive/Hive+on+Spark%3A+Getting+Started" rel="nofollow">https://cwiki.apache.org/confluence/display/Hive/Hive+on+Spark%3A+Getting+Started</a></p>
  
  <p>I already downloaded the "Prebuilt for Hadoop 2.4"-version of Spark, which i found on the official Apache Spark website. So I started the Master with:</p>
  
  <pre><code>./spark-class org.apache.spark.deploy.master.Master
  </code></pre>
  
  <p>Then the worker with:</p>
  
  <pre><code>./spark-class org.apache.spark.deploy.worker.Worker spark://hadoop.hortonworks:7077
  </code></pre>
  
  <p>And then I started Hive with this prompt:</p>
  
  <pre><code>hive –-auxpath /SharedFiles/spark-1.0.1-bin-hadoop2.4/lib/spark-assembly-1.1.0-hadoop2.4.0.jar
  </code></pre>
  
  <p>Then, according to the instructions, i had to change the execution engine of hive to spark with this prompt:</p>
  
  <pre><code>set hive.execution.engine=spark;,
  </code></pre>
  
  <p>And the result is:</p>
  
  <pre><code>Query returned non-zero code: 1, cause: 'SET hive.execution.engine=spark' FAILED in validation : Invalid value.. expects one of [mr, tez].
  </code></pre>
  
  <p>So if I try to launch a simple Hive Query, I can see on my hadoop.hortonwork:8088 that the launched job is a MapReduce-Job.</p>
  
  <p><strong>Now to my question</strong>: How can I change the execution engine of Hive so that Hive uses Spark instead of MapReduce? Are there any other ways to change it? (I already tried to change it via ambari and at the hive-site.xml)</p>