diff options
author | linweizhong <linweizhong@huawei.com> | 2015-04-17 12:04:02 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2015-04-17 12:04:02 +0100 |
commit | dc48ba9f9f7449dd2f12cbad288b65c8119d9284 (patch) | |
tree | 014ce04f91544669f5324656624f88be63404d32 /core | |
parent | f6a9a57a72767f48fcc02e5fda4d6eafa67aebde (diff) | |
download | spark-dc48ba9f9f7449dd2f12cbad288b65c8119d9284.tar.gz spark-dc48ba9f9f7449dd2f12cbad288b65c8119d9284.tar.bz2 spark-dc48ba9f9f7449dd2f12cbad288b65c8119d9284.zip |
[SPARK-6604][PySpark]Specify ip of python server scoket
In driver now will start a server socket and use a wildcard ip, use 127.0.0.0 is more reasonable, as we only use it by local Python process.
/cc davies
Author: linweizhong <linweizhong@huawei.com>
Closes #5256 from Sephiroth-Lin/SPARK-6604 and squashes the following commits:
7b3c633 [linweizhong] rephrase
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala b/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala index b1ffba4c54..7409dc2d86 100644 --- a/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala +++ b/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala @@ -604,7 +604,7 @@ private[spark] object PythonRDD extends Logging { * The thread will terminate after all the data are sent or any exceptions happen. */ private def serveIterator[T](items: Iterator[T], threadName: String): Int = { - val serverSocket = new ServerSocket(0, 1) + val serverSocket = new ServerSocket(0, 1, InetAddress.getByName("localhost")) // Close the socket if no connection in 3 seconds serverSocket.setSoTimeout(3000) |