PySpark Error: Py4JJavaError For Python version being incorrect

Publicado em: 10 Outubro 2018
no canal de: Raul Maldonado
11,785
36

Advance note: Audio was bad because I was traveling. haha
_____
The error in my case was: PySpark was running python 2.7 from my environment's default library. This is an issue since I have Python 3.6 for that enviroment. So, I reconfigured the PYSPARK_PYTHON path with this command:

import os
os.environ["PYSPARK_PYTHON"]="/anaconda3/envs/DIRECTORYNAME/bin/python"

I found my version of python being used in my environment by typing in "which python" Linux [Unix I think it's "find python"]


Nesta página do site você pode assistir ao vídeo on-line PySpark Error: Py4JJavaError For Python version being incorrect duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Raul Maldonado 10 Outubro 2018, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 11,785 vezes e gostou 36 espectadores. Boa visualização!