Ben Chuanlong Du's Blog

And let it direct your passion with reason.

PySpark Issue: Java Gateway Process Exited Before Sending the Driver Its Port Number

I countered the issue when using PySpark locally (the issue can happen to a cluster as well). It turned out to be caused by a misconfiguration of the environment variable JAVA_HOME in Docker.

References

PySpark: Exception: Java gateway process exited before sending the driver its port number

Comments