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

spark.yarn.user.classpath.first doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2, 1.6.0
    • YARN
    • None

    Description

      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"

      Attachments

        Activity

          People

            tgraves Thomas Graves
            tgraves Thomas Graves
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: