Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6890

Local cluster mode is broken with SPARK_PREPEND_CLASSES

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.4.0
    • 1.4.0
    • Spark Core
    • None

    Description

      In master, local cluster mode is broken. If I run `bin/spark-submit --master local-cluster[2,1,512]`, my executors keep failing with class not found exception. It appears that the assembly jar is not added to the executors' class paths. I suspect that this is caused by https://github.com/apache/spark/pull/5085.

      Exception in thread "main" java.lang.NoClassDefFoundError: scala/Option
      	at java.lang.Class.getDeclaredMethods0(Native Method)
      	at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
      	at java.lang.Class.getMethod0(Class.java:2774)
      	at java.lang.Class.getMethod(Class.java:1663)
      	at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
      	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
      Caused by: java.lang.ClassNotFoundException: scala.Option
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      

      Attachments

        Issue Links

          Activity

            People

              vanzin Marcelo Masiero Vanzin
              davies Davies Liu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: