Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/3607#discussion_r22593879
--- Diff:
yarn/src/main/scala/org/apache/spark/deploy/yarn/ClientArguments.scala ---
@@ -87,6 +93,24 @@ private[spark] class ClientArguments(args:
Array[String], sparkConf: SparkConf)
throw new IllegalArgumentException(
"You must specify at least 1 executor!\n" + getUsageMessage())
}
+ if (isClusterMode) {
+ for (key <- Seq(amMemKey, amMemOverheadKey)) {
+ if (sparkConf.getOption(key).isDefined) {
+ println(s"$key is set but does not apply in cluster mode.")
+ }
+ }
+ } else {
+ for (key <- Seq(driverMemKey, driverMemOverheadKey)) {
+ if (sparkConf.getOption(key).isDefined) {
+ println(s"$key is set but does not apply in client mode.")
+ }
+ }
+ if (isDriverMemSet) {
+ println("--driver-memory is set but does not apply in client
mode.")
+ }
--- End diff --
This warning doesn't make sense. It's a perfectly reasonable thing for YARN
users to set the driver memory in client mode.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]