java.lang.NoSuchMethodError: org.apache.spark.SparkContext.assertNotStopped()V

Stack Overflow | R3Tech | 5 months ago
  1. 0

    Apache Spark - NoSuchMethodError SparkContext.assertNoStopped()

    Stack Overflow | 5 months ago | R3Tech
    java.lang.NoSuchMethodError: org.apache.spark.SparkContext.assertNotStopped()V
  2. 0
    Put Jackson Java Module and Scala module in the same version.
    via GitHub by anujlal01
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    Check if you didn't miss adding Jackson dependencies to your code.
    via GitHub by anujlal01
  5. 0
    I was using the library hibernate-entitymanager:4.3.5.Final with java persistence API 2.0 instead of using it with hibernate-entitymanager:4.2.8.Final.

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.spark.SparkContext.assertNotStopped()V

      at org.apache.spark.sql.SparkSession.<init>()
    2. Spark Project SQL
      SparkSession$Builder.getOrCreate
      1. org.apache.spark.sql.SparkSession.<init>(SparkSession.scala:80)
      2. org.apache.spark.sql.SparkSession.<init>(SparkSession.scala:77)
      3. org.apache.spark.sql.SparkSession$Builder.getOrCreate(SparkSession.scala:837)
      3 frames
    3. com.tproj.testing
      App.main
      1. com.tproj.testing.sparkTest.App.main(App.java:25)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    5. Spark
      SparkSubmit.main
      1. org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
      2. org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
      3. org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
      4. org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
      5. org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
      5 frames