big-data-europe / docker-spark

Apache Spark docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to change PYSPARK_PYTHON from 2.7 to 3.6?

cqpaul opened this issue · 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.

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

commented

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 Do you already know what went wrong?

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