java.lang.NoClassDefFoundError

Could not initialize class org.apache.spark.internal.config.package$

Solutions on the web5304

  • via Stack Overflow by razo
    , 3 months ago
    Could not initialize class org.apache.spark.internal.config.package$
  • via Stack Overflow by Cody
    , 6 months ago
    Could not initialize class org.apache.spark.internal.config.package$
  • via Stack Overflow by K. Brown
    , 2 months ago
    Could not initialize class org.apache.spark.internal.config.package$
  • Stack trace

    • java.lang.NoClassDefFoundError: Could not initialize class org.apache.spark.internal.config.package$ at org.apache.spark.SparkContext.<init>(SparkContext.scala:397) at org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkContext.scala:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:247) at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357) at py4j.Gateway.invoke(Gateway.java:236) at py4j.commands.ConstructorCommand.invokeConstructor(ConstructorCommand.java:80) at py4j.commands.ConstructorCommand.execute(ConstructorCommand.java:69) at py4j.GatewayConnection.run(GatewayConnection.java:214) at java.lang.Thread.run(Thread.java:745)

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.