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

Stack Overflow | R3Tech | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 1

    Apache Spark - NoSuchMethodError SparkContext.assertNoStopped()

    Stack Overflow | 8 months ago | R3Tech
    java.lang.NoSuchMethodError: org.apache.spark.SparkContext.assertNotStopped()V
  2. 0

    HiBench spark run.sh issue

    GitHub | 2 months ago | kkuser
    java.lang.NoSuchMethodError: scala.reflect.api.JavaUniverse.runtimeMirror(Ljava/lang/ClassLoader;)Lscala/reflect/api/JavaMirrors$JavaMirror;

    1 unregistered visitors

    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