-
- Downloads
[SPARK-16110][YARN][PYSPARK] Fix allowing python version to be specified per...
[SPARK-16110][YARN][PYSPARK] Fix allowing python version to be specified per submit for cluster mode. ## What changes were proposed in this pull request? This fix allows submit of pyspark jobs to specify python 2 or 3. Change ordering in setup for application master environment so env vars PYSPARK_PYTHON and PYSPARK_DRIVER_PYTHON can be overridden by spark.yarn.appMasterEnv.* conf settings. This applies to YARN in cluster mode. This allows them to be set per submission without needing the unset the env vars (which is not always possible - e.g. batch submit with LIVY only exposes the arguments to spark-submit) ## How was this patch tested? Manual and existing unit tests. Author: KevinGrealish <KevinGre@microsoft.com> Closes #13824 from KevinGrealish/SPARK-16110.
Showing
- yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala 5 additions, 2 deletions.../src/main/scala/org/apache/spark/deploy/yarn/Client.scala
- yarn/src/test/scala/org/apache/spark/deploy/yarn/YarnClusterSuite.scala 22 additions, 4 deletions...scala/org/apache/spark/deploy/yarn/YarnClusterSuite.scala
Please register or sign in to comment