PySpark Error: Py4JJavaError For Python version being incorrect

Publicado el: 10 octubre 2018
en el 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"]


En esta página del sitio puede ver el video en línea PySpark Error: Py4JJavaError For Python version being incorrect de Duración hora minuto segunda en buena calidad , que subió el usuario Raul Maldonado 10 octubre 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 11,785 veces y le gustó 36 a los espectadores. Disfruta viendo!