Skip to content

Commit a986a3b

Browse files
Ashwin Swaroopsrowen
authored andcommitted
[SPARK-11686][CORE] Issue WARN when dynamic allocation is disabled due to spark.dynamicAllocation.enabled and spark.executor.instances both set
Changed the log type to a 'warning' instead of 'info' as required. Author: Ashwin Swaroop <Ashwin Swaroop> Closes #9926 from ashwinswaroop/master. (cherry picked from commit 6385002) Signed-off-by: Sean Owen <sowen@cloudera.com>
1 parent 9978966 commit a986a3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/scala/org/apache/spark/SparkContext.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
556556
// Optionally scale number of executors dynamically based on workload. Exposed for testing.
557557
val dynamicAllocationEnabled = Utils.isDynamicAllocationEnabled(_conf)
558558
if (!dynamicAllocationEnabled && _conf.getBoolean("spark.dynamicAllocation.enabled", false)) {
559-
logInfo("Dynamic Allocation and num executors both set, thus dynamic allocation disabled.")
559+
logWarning("Dynamic Allocation and num executors both set, thus dynamic allocation disabled.")
560560
}
561561

562562
_executorAllocationManager =

0 commit comments

Comments
 (0)