Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/5609#discussion_r29360092
--- Diff:
launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java
---
@@ -201,8 +205,16 @@
// - SPARK_DRIVER_MEMORY env variable
// - SPARK_MEM env variable
// - default value (512m)
- String memory =
firstNonEmpty(firstNonEmptyValue(SparkLauncher.DRIVER_MEMORY, conf, props),
- System.getenv("SPARK_DRIVER_MEMORY"), System.getenv("SPARK_MEM"),
DEFAULT_MEM);
+ String memory;
+ // Take Thrift Server as daemon
+ if (isThriftServer(mainClass)) {
--- End diff --
To avoid the copy & paste, I'd do:
String tsMemory = isThriftServer(mainClass) ?
getenv("SPARK_DAEMON_MEMORY") : null;
memory = firstNonEmpty(tsMemory, ...);
---
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]