Skip to content

Commit

Permalink
Don't dynamic allocation warning when it's disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Feb 18, 2020
1 parent 619274e commit abf69d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 " +
Expand Down

0 comments on commit abf69d0

Please sign in to comment.