Abdul Mateen Mohammed created SPARK-26047: ---------------------------------------------
Summary: Py4JNetworkError: An error occurred while trying to connect to the Java server (127.0.0.1 Key: SPARK-26047 URL: https://issues.apache.org/jira/browse/SPARK-26047 Project: Spark Issue Type: Bug Components: PySpark Affects Versions: 2.4.0 Reporter: Abdul Mateen Mohammed On IPV6, I got the following error when pyspark is invoked: h1. 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" -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org