title: pyspark.sql.utils.IllegalArgumentException: "Error while instantiating 'org.apache.spark.sql.hive.HiveSessionStateBuild in windows 10
body: <p>I have installed spark 2.2 with winutils in windows 10.when i am going to run pyspark i am facing bellow exception</p>
  
  <pre><code>pyspark.sql.utils.IllegalArgumentException: "Error while instantiating 'org.apache.spark.sql.hive.HiveSessionStateBuilder'
  </code></pre>
  
  <p>I have already tried permission 777 commands in tmp/hive folder as well.but it is not working for now</p>
  
  <pre><code>winutils.exe chmod -R 777 C:\tmp\hive
  </code></pre>
  
  <p>after applying this the problem remains same. I am using pyspark 2.2 in my windows 10.
  Her is spark-shell env
  <a href="https://i.stack.imgur.com/Ib0sO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ib0sO.png" alt="enter image description here"></a></p>
  
  <p>Here is pyspark shell
  <a href="https://i.stack.imgur.com/71SPF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/71SPF.png" alt="enter image description here"></a></p>
  
  <p>Kindly help me to figure out
  Thankyou</p>