docker-spark icon indicating copy to clipboard operation
docker-spark copied to clipboard

How to change PYSPARK_PYTHON from 2.7 to 3.6?

Open cqpaul opened this issue 4 years ago • 4 comments

I have got an Exception as below, hope some one can help to solve it, thanks.

Python in worker has different version 2.7 than that in driver 3.6, PySpark cannot run with different minor versions.Please check environment variables PYSPARK_PYTHON and PYSPARK_DRIVER_PYTHON are correctly set.

cqpaul avatar Jul 08 '20 03:07 cqpaul

docker exec -it -e PYSPARK_PYTHON=python3 spark-master /spark/bin/pyspark

Flyfoxs avatar Sep 30 '20 08:09 Flyfoxs

ok @Flyfoxs this works for the master but not for the worker? how can i make sure the worker also starts up python 3?

hugokoopmans avatar Jan 21 '21 14:01 hugokoopmans

@hugokoopmans Do you already know what went wrong?

sowizdrzal avatar Oct 06 '21 08:10 sowizdrzal

Have You already fixed also for worker in the latest branch?

stator85 avatar Jul 06 '22 19:07 stator85