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

jetty-security needed for SPARK_PREPEND_CLASSES to work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.3.1
    • Build
    • None

    Description

      For SPARK_PREPEND_CLASSES to work, we need the jetty-security jar to also get dumped into the unshaded dir. Otherwise you get an exception like:

      Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/security/LoginService
              at org.apache.spark.repl.SparkIMain.<init>(SparkIMain.scala:118)
              at org.apache.spark.repl.SparkILoop$SparkILoopInterpreter.<init>(SparkILoop.scala:187)
              at org.apache.spark.repl.SparkILoop.createInterpreter(SparkILoop.scala:216)
              at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply$mcZ$sp(SparkILoop.scala:948)
              at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply(SparkILoop.scala:944)
              at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply(SparkILoop.scala:944)
              at scala.tools.nsc.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:135)
              at org.apache.spark.repl.SparkILoop.org$apache$spark$repl$SparkILoop$$process(SparkILoop.scala:944)
              at org.apache.spark.repl.SparkILoop.process(SparkILoop.scala:1058)
              at org.apache.spark.repl.Main$.main(Main.scala:31)
              at org.apache.spark.repl.Main.main(Main.scala)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:483)
              at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:569)
              at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:166)
              at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:189)
              at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:110)
              at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
      Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.security.LoginService
              at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              ... 20 more
      

      PR is on the way ...

      Attachments

        Activity

          People

            irashid Imran Rashid
            irashid Imran Rashid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: