Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/10329#discussion_r47813137
--- Diff:
core/src/main/scala/org/apache/spark/deploy/rest/RestSubmissionClient.scala ---
@@ -429,7 +429,7 @@ private[spark] object RestSubmissionClient {
*/
private[rest] def filterSystemEnvironment(env: Map[String, String]):
Map[String, String] = {
env.filter { case (k, _) =>
- (k.startsWith("SPARK_") && k != "SPARK_ENV_LOADED") ||
k.startsWith("MESOS_")
+ (k.startsWith("SPARK_") && k != "SPARK_ENV_LOADED" && k !=
"SPARK_HOME") || k.startsWith("MESOS_")
--- End diff --
we should add a comment here to explain why we need to filter out
SPARK_HOME, and point to the JIRA. (though we can always do that in a separate
patch so as to unblock the release)
---
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]