Github user pashields commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7979#discussion_r38695637
  
    --- Diff: 
core/src/main/scala/org/apache/spark/deploy/rest/RestSubmissionClient.scala ---
    @@ -413,6 +412,16 @@ private[spark] object RestSubmissionClient {
         val mainClass = args(1)
         val appArgs = args.slice(2, args.size)
         val conf = new SparkConf
    -    run(appResource, mainClass, appArgs, conf)
    +    val env = filterSystemEnvironment(sys.env)
    +    run(appResource, mainClass, appArgs, conf, env)
    +  }
    +
    +  /**
    +   * Filter non-spark environment variables from any environment.
    +   */
    +  protected[rest] def filterSystemEnvironment(env: Map[String, String]): 
Map[String, String] = {
    --- End diff --
    
    Thanks for helping to guide this through. Apologies for lack of Scala 
knowledge.


---
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]

Reply via email to