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

Yarn backend's default file replication should match HDFS's default one

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: YARN
    • Labels:
      None
    • Target Version/s:

      Description

      This code in ClientBase.scala sets the replication used for files uploaded to HDFS:

          val replication = sparkConf.getInt("spark.yarn.submit.file.replication", 3).toShort
      

      Instead of a hardcoded "3" (which is the default value for HDFS), it should be using the default value from the HDFS conf ("dfs.replication").

        Attachments

          Activity

            People

            • Assignee:
              vanzin Marcelo Masiero Vanzin
              Reporter:
              vanzin Marcelo Masiero Vanzin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: