From abf69d0640a6fb7090c56aa91d10755f3f70e659 Mon Sep 17 00:00:00 2001 From: HyukjinKwon Date: Tue, 18 Feb 2020 14:25:34 +0900 Subject: [PATCH] Don't dynamic allocation warning when it's disabled --- .../main/scala/org/apache/spark/resource/ResourceProfile.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/org/apache/spark/resource/ResourceProfile.scala b/core/src/main/scala/org/apache/spark/resource/ResourceProfile.scala index 03dcf5e317798..2608ab9fc0d4c 100644 --- a/core/src/main/scala/org/apache/spark/resource/ResourceProfile.scala +++ b/core/src/main/scala/org/apache/spark/resource/ResourceProfile.scala @@ -183,7 +183,7 @@ class ResourceProfile( "no corresponding task resource request was specified.") } } - if(!shouldCheckExecCores) { + if(!shouldCheckExecCores && Utils.isDynamicAllocationEnabled(sparkConf)) { // if we can't rely on the executor cores config throw a warning for user logWarning("Please ensure that the number of slots available on your " + "executors is limited by the number of cores to task cpus and not another " +