Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/12115#discussion_r58777792
--- Diff:
launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java
---
@@ -227,6 +229,16 @@
addOptionString(cmd, System.getenv("SPARK_SUBMIT_OPTS"));
addOptionString(cmd, System.getenv("SPARK_JAVA_OPTS"));
+ //We don't want the client to specify Xmx. These have to be set by
their corresponding
+ // memory flag --driver-memory or configuration entry
spark.driver.memory
+ String driverExtraJavaOptions =
config.get(SparkLauncher.DRIVER_EXTRA_JAVA_OPTIONS);
+ if (driverExtraJavaOptions!=null &&
driverExtraJavaOptions.contains("Xmx")) {
--- End diff --
add spaces around !=
---
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]