Github user pwendell commented on a diff in the pull request: https://github.com/apache/spark/pull/586#discussion_r12078538 --- Diff: yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala --- @@ -65,6 +65,13 @@ trait ClientBase extends Logging { val APP_FILE_PERMISSION: FsPermission = FsPermission.createImmutable(Integer.parseInt("644", 8).toShort) + // SPARK_JAVA_OPTS is deprecated, but for backwards compatibility: + val javaOptsFromEnv = System.getenv("SPARK_JAVA_OPTS") --- End diff -- The slightly more scala-ish way to write this is: ``` sys.env("SPARK_JAVA_OPTS").foreach { opts => sparkConf.set("spark.executor.extraJavaOptions", opts) sparkConf.set("spark.driver.extraJavaOptions", opts) } ```
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---