You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Thomas Graves (JIRA)" <ji...@apache.org> on 2015/10/01 17:51:27 UTC

[jira] [Created] (SPARK-10901) spark.yarn.user.classpath.first doesn't work

Thomas Graves created SPARK-10901:
-------------------------------------

             Summary: spark.yarn.user.classpath.first doesn't work
                 Key: SPARK-10901
                 URL: https://issues.apache.org/jira/browse/SPARK-10901
             Project: Spark
          Issue Type: Bug
          Components: YARN
    Affects Versions: 1.5.1
            Reporter: Thomas Graves
            Priority: Critical


spark.yarn.user.classpath.first doesn't properly add the app jar to the system class path first.  It has some logic there that i believe works for local files but running on yarn using distributed cache to distribute the app jar doesn't put __app__.jar into the classpath at all.

This is a break in backwards compatibility.

Note that in this case the user is trying to use different version of kryo (which used to work in spark 1.2) and the new configs for this: spark.{driver, executor}.userClassPathFirst don't allow this as it errors out with:

User class threw exception: java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/spark/util/ChildFirstURLClassLoader) previously initiated loading for a different type with name "com/esotericsoftware/kryo/Kryo"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org