Github user jerryshao commented on a diff in the pull request:
https://github.com/apache/spark/pull/11238#discussion_r53267626
--- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
@@ -692,6 +692,9 @@ private[spark] class Client(
}
env("SPARK_JAVA_OPTS") = value
}
+ // propagate PYSPARK_DRIVER_PYTHON and PYSPARK_PYTHON to driver in
cluster mode
+
sys.env.get("PYSPARK_DRIVER_PYTHON").foreach(env("PYSPARK_DRIVER_PYTHON") = _)
+ sys.env.get("PYSPARK_PYTHON").foreach(env("PYSPARK_PYTHON") = _)
--- End diff --
@zjffdu looks like
[L660](https://github.com/apache/spark/blob/master/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala#L660)
has the similar codes, what's the difference?
---
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]