title: pyspark; Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient;'
body: <p>I am trying to configure spark with hive meta store, to access hive tables from spark.</p>
  
  <p>When i moved hive.site.xml to spark_home/conf i am getting errors. in spark when i tried to read data from hive tables. and the same error when i tried to execute simple select query in hive shell.</p>
  
  <p>error i am getting is below.</p>
  
  <p>for hive</p>
  
  <pre><code>FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
  </code></pre>
  
  <p>for spark</p>
  
  <pre><code>pyspark.sql.utils.AnalysisException: 'java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient;'
  </code></pre>