SparkException: Python worker failed to connect back

报错:org.apache.spark.SparkException: Python worker failed to connect back.

org.apache.spark.SparkException: Python worker failed to connect back
尝试了各种网上说的办法,不行,然后
解决办法:
把我的电脑–管理–高级系统设置–环境变量–系统变量,
把SPARK_HOME 设置为python的exe文件,就好了,如下图:
SparkException: Python worker failed to connect back_第1张图片
就搞定了。
WIN10 Spark 3.1.2

你可能感兴趣的:(SPARK学习,python)