i used :export SPARK_MAJOR_VERSION=2: for the pyspark but python is still 2.7
i want to use py 3+ with pyspark
you have to use
otherwise it will launch Python 2.7 as it is default version.
Hi thanks for the quick response. This is what i am getting.
[diamatic@gw02 ~]$ export PYSPARK_PYTHON=PYTHON3
[diamatic@gw02 ~]$ export MAJOR_SPARK_VERSION=2
[diamatic@gw02 ~]$ pyspark
Multiple versions of Spark are installed but SPARK_MAJOR_VERSION is not set
Spark1 will be picked by default
env: PYTHON3: No such file or directory