java.lang.IllegalArgumentException: Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':


Samebug tips1

You might need to add the permission 777, run this in your cmd (as admin) "C:\hadoop\bin>winutils.exe chmod 777 \tmp\hive"


7 months ago
Expert tip

Solutions on the web23

Solution icon of stackoverflow
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':

Solution icon of stackoverflow
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':

Solution icon of stackoverflow
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':

Solution icon of stackoverflow
via Stack Overflow by vefthym
, 8 months ago
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':

Solution icon of stackoverflow
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':

Solution icon of stackoverflow
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':

Solution icon of stackoverflow
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':

Solution icon of stackoverflow
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':

Solution icon of stackoverflow
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':

Solution icon of github
via GitHub by jwang727
, 4 months ago
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':

Stack trace

java.lang.IllegalArgumentException: Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':
	at org.apache.spark.sql.SparkSession$.org$apache$spark$sql$SparkSession$$reflect(SparkSession.scala:981)
	at org.apache.spark.sql.SparkSession.sessionState$lzycompute(SparkSession.scala:110)
	at org.apache.spark.sql.SparkSession.sessionState(SparkSession.scala:109)
	at org.apache.spark.sql.SparkSession$Builder$$anonfun$getOrCreate$5.apply(SparkSession.scala:878)
	at org.apache.spark.sql.SparkSession$Builder$$anonfun$getOrCreate$5.apply(SparkSession.scala:878)
	at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:99)
	at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:99)
	at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:230)
	at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:40)
	at scala.collection.mutable.HashMap.foreach(HashMap.scala:99)
	at org.apache.spark.sql.SparkSession$Builder.getOrCreate(SparkSession.scala:878)
	at org.apache.spark.repl.Main$.createSparkSession(Main.scala:95)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 3 months ago