java.lang.NoSuchMethodError: scala.Predef$.$scope()Lscala/xml/TopScope$;

Stack Overflow | Victor | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Java spark example runs wrong with error: java.lang.NoSuchMethodError: scala.Predef$.$scope()Lscala/xml/TopScope$

    Stack Overflow | 5 months ago | Victor
    java.lang.NoSuchMethodError: scala.Predef$.$scope()Lscala/xml/TopScope$;
  2. 0

    With the new Spark action, we should have a Spark example workflow that runs some Spark job.

    Apache's JIRA Issue Tracker | 2 years ago | Robert Kanter
    java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;

  1. tyson925 1 times, last 6 months ago

Root Cause Analysis

  1. java.lang.NoSuchMethodError

    scala.Predef$.$scope()Lscala/xml/TopScope$;

    at org.apache.spark.ui.jobs.StagePage.<init>()
  2. Spark
    JavaSparkContext.<init>
    1. org.apache.spark.ui.jobs.StagePage.<init>(StagePage.scala:44)
    2. org.apache.spark.ui.jobs.StagesTab.<init>(StagesTab.scala:34)
    3. org.apache.spark.ui.SparkUI.<init>(SparkUI.scala:62)
    4. org.apache.spark.ui.SparkUI$.create(SparkUI.scala:215)
    5. org.apache.spark.ui.SparkUI$.createLiveUI(SparkUI.scala:157)
    6. org.apache.spark.SparkContext.<init>(SparkContext.scala:443)
    7. org.apache.spark.SparkContext.<init>(SparkContext.scala:149)
    8. org.apache.spark.SparkContext.<init>(SparkContext.scala:185)
    9. org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkContext.scala:92)
    9 frames
  3. com.spark.test
    WordCountTest.main
    1. com.spark.test.WordCountTest.main(WordCountTest.java:25)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
    1 frame