Caused by: org.apache.spark.SparkException: Python worker failed to connect back.
TypeError: ‘JavaPackage’ object is not callable
question
TypeError: ‘JavaPackage’ object is not callable
The pyspark version is too high, reinstall the pyspark environment.
Caused by: org.apache.spark.SparkException: Python worker failed to connect back error occurs
Ideas
Suggestion: PYSPARK_PYTHON = the python.exe path you use
Restart the system to make the environment take effect
solve
Run successfully!