You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Nihar Sheth (JIRA)" <ji...@apache.org> on 2019/01/10 20:42:00 UTC

[jira] [Commented] (SPARK-26404) set spark.pyspark.python or PYSPARK_PYTHON doesn't work in k8s client-cluster mode.

    [ https://issues.apache.org/jira/browse/SPARK-26404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16739760#comment-16739760 ] 

Nihar Sheth commented on SPARK-26404:
-------------------------------------

Hi, I think I ran into a similar issue. How are you calling Spark? Via spark-submit, or using pyspark.sql.SparkSession, or some other method?

> set spark.pyspark.python or PYSPARK_PYTHON doesn't work in k8s client-cluster mode.
> -----------------------------------------------------------------------------------
>
>                 Key: SPARK-26404
>                 URL: https://issues.apache.org/jira/browse/SPARK-26404
>             Project: Spark
>          Issue Type: Bug
>          Components: Kubernetes
>    Affects Versions: 2.4.0
>            Reporter: Dongqing  Liu
>            Priority: Major
>
> Neither
>    conf.set("spark.executorEnv.PYSPARK_PYTHON", "/opt/pythonenvs/bin/python")
> nor 
>   conf.set("spark.pyspark.python", "/opt/pythonenvs/bin/python") 
> works. 
> Looks like the executor always picks python from PATH.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org