title: Hive on Spark CDH5.7 Execution Error
body: <p>I've updated my cluster to CDH 5.7 recently and I am trying to run a Hive query processing on Spark.</p>
  
  <p>I have configured the Hive client to use the Spark execution engine and Hive Dependency on a Spark Service from Cloudera Manager.</p>
  
  <p>Via HUE, i'm simply running a simple select query but seem to get this error at all times: Error while processing statement: FAILED: Execution Error, return code 3 from org.apache.hadoop.hive.ql.exec.spark.SparkTask</p>
  
  <p>Following are the logs for the same:</p>
  
  <pre><code>ERROR operation.Operation: Error running hive query: 
  org.apache.hive.service.cli.HiveSQLException: Error while processing statement: FAILED: Execution Error, return code 3 from org.apache.hadoop.hive.ql.exec.spark.SparkTask
      at org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:374)
      at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:180)
      at org.apache.hive.service.cli.operation.SQLOperation.access$100(SQLOperation.java:72)
      at org.apache.hive.service.cli.operation.SQLOperation$2$1.run(SQLOperation.java:232)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:415)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)
      at org.apache.hive.service.cli.operation.SQLOperation$2.run(SQLOperation.java:245)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>Any help to solve this would be great!</p>