[ https://issues.apache.org/jira/browse/SPARK-10901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14940092#comment-14940092 ]
Marcelo Vanzin edited comment on SPARK-10901 at 10/1/15 7:39 PM: ----------------------------------------------------------------- As a potential workaround, he can add his app jar (or the kryo jar) to {{spark.(executor,driver).extraClassPath}}. If he distributes the jars with the application (using {{--jars}} in cluster mode or {{spark.yarn.dist.files}} in client mode), just add the jar names without any path and they should be prepended to the app's classpath. was (Author: vanzin): As a potential workaround, he can add his app jar (or the kryo jar) to {{spark.{executor,driver}.extraClassPath}}. If he distributes the jars with the application (using {{--jars}} in cluster mode or {{spark.yarn.dist.files}} in client mode), just add the jar names without any path and they should be prepended to the app's classpath. > 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 > Assignee: 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org