Hive on Spark is not working - Failed to create spark client
<p>I am getting below error while executing hive query as spark engine.</p>

<pre><code>Error:
    Failed to execute spark task, with exception org.apache.hadoop.hive.ql.metadata.HiveException(Failed to create spark client.)'
    FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.spark.SparkTask

Hive Console:
    hive&gt; set hive.execution.engine=spark;
    hive&gt; set spark.master=spark://INBBRDSSVM15.example.com:7077;
    hive&gt; set spark.executor.memory=2g;

    Hadoop - 2.7.0
    Hive - 1.2.1
    Spark - 1.6.1
</code></pre>