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

Utils.isDynamicAllocationEnabled returns wrong value if dynAlloc is explicitly disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • Spark Core
    • None

    Description

        def isDynamicAllocationEnabled(conf: SparkConf): Boolean = {
          conf.contains("spark.dynamicAllocation.enabled") &&
            conf.getInt("spark.executor.instances", 0) == 0
        }
      

      If you have spark.dynamicAllocation.enabled=false in the config, that will return true.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: