title: "FAILED: Execution Error, return code 3" after setting Hive engine from mr to Spark
body: <p>I am trying use Spark engine in my Hive query.<br>
  It is an old query, and I don't want to convert the whole code to a spark job.</p>
  
  <p>But when I run the query, it gives following error:</p>
  
  <blockquote>
    <p>Status: Failed<br>
    FAILED: Execution Error, return code 3 from   org.apache.hadoop.hive.ql.exec.spark.SparkTask</p>
  </blockquote>
  
  <p>The only thing I have changed is the execution engine:</p>
  
  <p><strong>set hive.execution.engine=spark;</strong></p>
  
  <p>The above change works for other similar queries. So I don't think that it's a configuration issue...<br>
  Or am I not aware that it is?</p>
  
  <p>Has anybody faced this issue before?</p>