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

Spark-on-YARN missing user customizations of hadoop config

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.1, 2.4.0
    • Spark Core, YARN
    • None

    Description

      In my change to fix SPARK-22372, I removed some code that allowed user customizations of hadoop configs to take effect. Notably, these lines in YarnSparkHadoopUtil:

       override def newConfiguration(conf: SparkConf): Configuration = {
         val hadoopConf = new YarnConfiguration(super.newConfiguration(conf))
         hadoopConf.addResource(Client.SPARK_HADOOP_CONF_FILE)
         hadoopConf
       }
      

      The addResource call is now missing so user configs are ignored (only the NM config is used).

      Attachments

        Activity

          People

            vanzin Marcelo Masiero Vanzin
            vanzin Marcelo Masiero Vanzin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: