Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
2.4.0
-
None
-
None
Description
On IPV6, I got the following error when pyspark is invoked:
Py4JNetworkError: An error occurred while trying to connect to the Java server (127.0.0.1...)
Where as on IPV4, it is working fine.
I realized that the issue was due to default address specified as 127.0.0.1 in java_gateway.py under py4j-0.10.7-src.zip
Resolution:
I was able to fix it by replacing the entry
DEFAULT_ADDRESS = "127.0.0.1" with DEFAULT_ADDRESS = "::1"