Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    This might be an issue with the file location in the Spark submit command. Try it with

    spark-submit --master spark://master:7077 \
         hello_world_from_pyspark.py {file location}
    
    
  2. ,
    Expert tip

    Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

Solutions on the web

via Stack Overflow by nanounanue
, 1 year ago
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':
via Stack Overflow by T. Bombeke
, 1 year ago
Error while instantiating 'org.apache.spark.sql.internal.SessionState':
via Stack Overflow by user135633
, 1 year ago
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':
via GitHub by jwang727
, 11 months ago
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':
via GitHub by fushu18
, 4 months ago
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':
via GitHub by dianegal
, 8 months ago
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState':
java.lang.ClassNotFoundException: org.apache.spark.sql.hive.HiveSessionState	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)	at java.lang.Class.forName0(Native Method)	at java.lang.Class.forName(Class.java:348)	at org.apache.spark.util.Utils$.classForName(Utils.scala:228)	at org.apache.spark.sql.SparkSession$.org$apache$spark$sql$SparkSession$$reflect(SparkSession.scala:947)	at org.apache.spark.sql.SparkSession.sessionState$lzycompute(SparkSession.scala:111)	at org.apache.spark.sql.SparkSession.sessionState(SparkSession.scala:110)	at org.apache.spark.sql.SparkSession.conf$lzycompute(SparkSession.scala:133)	at org.apache.spark.sql.SparkSession.conf(SparkSession.scala:133)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:237)	at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)	at py4j.Gateway.invoke(Gateway.java:280)	at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)	at py4j.commands.CallCommand.execute(CallCommand.java:79)	at py4j.GatewayConnection.run(GatewayConnection.java:214)	at java.lang.Thread.run(Thread.java:745)