spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdul Mateen Mohammed (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-26047) Py4JNetworkError: An error occurred while trying to connect to the Java server (127.0.0.1
Date Tue, 13 Nov 2018 23:42:00 GMT
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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message