Spark Exception: Python in worker has different version 3.4 than that in driver 3.5

前端 未结 2 1555
别那么骄傲
别那么骄傲 2021-01-27 02:56

I am using Amazon EC2, and I have my master and development servers as one. And I have another instance for a single worker.

I am new to this, but I have managed to make

2条回答
  •  借酒劲吻你
    2021-01-27 03:01

    I've had the same issue. There are several possible reasons:

    • One of your workers had python3.4 but you didn't notice it. Please go to each worker to check PYSPARK_PYTHON. That is, if you set PYSPARK_PYTHON=python3, go to each worker to type python3 and check the version.

    • You connect to the wrong workers. Check your SparkContext config and make sure what your workers are.

    I have spent more than ten hours to find the same issue with you. But the root cause for me is the wrong connection.... TAT

提交回复
热议问题