Github user aarondav commented on a diff in the pull request:
https://github.com/apache/spark/pull/299#discussion_r11219913
--- Diff:
yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnableUtil.scala
---
@@ -56,9 +56,10 @@ trait ExecutorRunnableUtil extends Logging {
// Set the JVM memory
val executorMemoryString = executorMemory + "m"
JAVA_OPTS += "-Xms" + executorMemoryString + " -Xmx" +
executorMemoryString + " "
- if (env.isDefinedAt("SPARK_JAVA_OPTS")) {
- JAVA_OPTS += env("SPARK_JAVA_OPTS") + " "
- }
+
+ // Set extra Java options for the executor
+ val executorOpts =
sys.props.find(_._1.contains("spark.executor.extraJavaOptions"))
+ JAVA_OPTS += executorOpts
--- End diff --
I think this returns an Option? String concatenation may not be the correct
solution here.
---
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.
---