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

Spark applications fail in yarn-cluster mode when the directories configured in yarn.nodemanager.local-dirs are located on different disks/partitions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • YARN
    • None

    Description

      Spark applications fail from time to time in yarn-cluster mode (but not in yarn-client mode) when yarn.nodemanager.local-dirs (Hadoop YARN config) is set to a comma-separated list of directories which are located on different disks/partitions.

      Steps to reproduce:
      1. Set yarn.nodemanager.local-dirs (in yarn-site.xml) to a list of directories located on different partitions (the more you set, the more likely it will be to reproduce the bug):
      (...)
      <property>
      <name>yarn.nodemanager.local-dirs</name>
      <value>file:/d1/yarn/local/nm-local-dir,file:/d2/yarn/local/nm-local-dir,file:/d3/yarn/local/nm-local-dir,file:/d4/yarn/local/nm-local-dir,file:/d5/yarn/local/nm-local-dir,file:/d6/yarn/local/nm-local-dir,file:/d7/yarn/local/nm-local-dir</value>
      </property>
      (...)
      2. Launch (several times) an application in yarn-cluster mode, it will fail (apparently randomly) from time to time

      Attachments

        1. spark-1.1.0-utils-fetch.patch
          0.7 kB
          Ryan Williams
        2. spark-1.1.0-yarn_cluster_tmpdir.patch
          0.7 kB
          Christophe Préaud

        Issue Links

          Activity

            People

              preaudc Christophe Préaud
              preaudc Christophe Préaud
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: