[ 
https://issues.apache.org/jira/browse/SPARK-4475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Owen resolved SPARK-4475.
------------------------------
          Resolution: Won't Fix
    Target Version/s:   (was: 1.1.1, 1.2.0, 1.0.3)

I think this could be reopened if there were follow up on the question on when 
localhost would not resolve, which isn't a Spark issue per se, and an argument 
that 127.0.0.1 were almost always better. There were arguments against that in 
the PR.

> PySpark failed to initialize if localhost can not be resolved
> -------------------------------------------------------------
>
>                 Key: SPARK-4475
>                 URL: https://issues.apache.org/jira/browse/SPARK-4475
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 1.0.2, 1.1.0, 1.2.0
>            Reporter: Davies Liu
>
> {code}
> Traceback (most recent call last):
>   File "/home/hduser/Downloads/spark-1.1.0/python/pyspark/shell.py", line 44, 
> in <module>
>     sc = SparkContext(appName="PySparkShell", pyFiles=add_files)
>   File "/home/hduser/Downloads/spark-1.1.0/python/pyspark/context.py", line 
> 107, in __init__
>     conf)
>   File "/home/hduser/Downloads/spark-1.1.0/python/pyspark/context.py", line 
> 159, in _do_init
>     self._accumulatorServer = accumulators._start_update_server()
>   File "/home/hduser/Downloads/spark-1.1.0/python/pyspark/accumulators.py", 
> line 251, in _start_update_server
>     server = AccumulatorServer(("localhost", 0), _UpdateRequestHandler)
>   File "/usr/lib/python2.7/SocketServer.py", line 408, in __init__
>     self.server_bind()
>   File "/usr/lib/python2.7/SocketServer.py", line 419, in server_bind
>     self.socket.bind(self.server_address)
>   File "/usr/lib/python2.7/socket.py", line 224, in meth
>     return getattr(self._sock,name)(*args)
> socket.gaierror: [Errno -5] No address associated with hostname
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to