title: Specify a vaild path to the correct hive jars using $HIVE_METASTORE_JARS or change spark.sql.hive.metastore.version to 1.2.1
body: <p>When i try to run spark-submit on the Jar which had HiveContext,getting the below error.</p>
  
  <p><strong>Spark-defaults.conf had</strong> </p>
  
  <pre><code>spark.sql.hive.metastore.version 0.14.0
  spark.sql.hive.metastore.jars ----/external_jars/hive-metastore-0.14.0.jar
  #spark.sql.hive.metastore.jars maven
  </code></pre>
  
  <p>I would like to use Hive Metastore version 0.14. both spark and hadoop are on diff clusters.</p>
  
  <p>Can anyone helping me with resolving this one?</p>
  
  <p>16/09/19 16:52:24 INFO HiveContext: default warehouse location is /apps/hive/warehouse
  Exception in thread "main" java.lang.IllegalArgumentException: Builtin jars can only be used when hive execution version == hive metastore version. Execution: 1.2.1 != Metastore: 0.14.0.
   Specify a vaild path to the correct hive jars using $HIVE_METASTORE_JARS or change spark.sql.hive.metastore.version to 1.2.1.
          at org.apache.spark.sql.hive.HiveContext.metadataHive$lzycompute(HiveContext.scala:254)
          at org.apache.spark.sql.hive.HiveContext.metadataHive(HiveContext.scala:237)
          at org.apache.spark.sql.hive.HiveContext.setConf(HiveContext.scala:441)
          at org.apache.spark.sql.SQLContext$$anonfun$4.apply(SQLContext.scala:272)
          at org.apache.spark.sql.SQLContext$$anonfun$4.apply(SQLContext.scala:271)
          at scala.collection.Iterator$class.foreach(Iterator.scala:727)
          at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
          at scala.collection.IterableLike$cla    </p>