PySpark Error: Py4JJavaError For Python version being incorrect

Publié le: 10 octobre 2018
sur la chaîne: 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"]


Sur cette page du site, vous pouvez voir la vidéo en ligne PySpark Error: Py4JJavaError For Python version being incorrect durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Raul Maldonado 10 octobre 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 11,785 fois et il a aimé 36 téléspectateurs. Bon visionnage!