You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/04/20 08:40:37 UTC
[GitHub] [spark] weixiuli commented on a diff in pull request #36273: [SPARK-38960][CORE]Spark should fail fast if initial memory too large…
weixiuli commented on code in PR #36273:
URL: https://github.com/apache/spark/pull/36273#discussion_r853879553
##########
core/src/main/scala/org/apache/spark/SparkConf.scala:
##########
@@ -529,6 +529,17 @@ class SparkConf(loadDefaults: Boolean) extends Cloneable with Logging with Seria
s"(was '$javaOpts'). Use spark.executor.memory instead."
throw new Exception(msg)
}
+ if (javaOpts.contains("-Xms") && contains(EXECUTOR_MEMORY)) {
Review Comment:
We should also pay attention to Kubernetes: https://github.com/apache/spark/blob/master/resource-managers/kubernetes/docker/src/main/dockerfiles/spark/entrypoint.sh#L84-L99
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org