Caused by: org.apache.spark.SparkException: Python worker failed to connect back.
TypeError: ‘JavaPackage’ object is not callable
问题
TypeError: ‘JavaPackage’ object is not callable
pyspark版本太高,重新安装了一遍pyspark环境
出现 Caused by: org.apache.spark.SparkException: Python worker failed to connect back报错
思路
建议:PYSPARK_PYTHON = 你所用的python.exe路径
重启系统使环境生效
解决
运行成功!