You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Odon Copon <od...@gmail.com> on 2020/04/22 17:02:37 UTC

pyspark working with a different Python version than the cluster

Hi,
Something is happening to me that I don't quite understand.
I ran pyspark on a machine that has Python 3.5 where I managed to run some
commands, even the Spark cluster is using Python 3.4.
If I do the same with spark-submit I get the "Python in worker has
different version 3.4 than that in driver 3.5" error.
Why is Pyspark working then?

Thanks. Regards

Re: pyspark working with a different Python version than the cluster

Posted by Tang Jinxin <xi...@gmail.com>.
Hi  Copon,   Python In worker use python3 to termine, It may return python3.4 In some nodes, Could you check python3 results? Best wishes, Jinxin xiaoxingstack 邮箱:xiaoxingstack@gmail.com 签名由 网易邮箱大师 定制 On 04/23/2020 01:02, Odon Copon wrote: Hi, Something is happening to me that I don't quite understand. I ran pyspark on a machine that has Python 3.5 where I managed to run some commands, even the Spark cluster is using Python 3.4. If I do the same with spark-submit I get the "Python in worker has different version 3.4 than that in driver 3.5" error. Why is Pyspark working then? Thanks. Regards