Repository: spark Updated Branches: refs/heads/master 6c5858bc6 -> 693949ba4
[SPARK-8976] [PYSPARK] fix open mode in python3 This bug only happen on Python 3 and Windows. I tested this manually with python 3 and disable python daemon, no unit test yet. Author: Davies Liu <[email protected]> Closes #8181 from davies/open_mode. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/693949ba Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/693949ba Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/693949ba Branch: refs/heads/master Commit: 693949ba4096c01a0b41da2542ff316823464a16 Parents: 6c5858b Author: Davies Liu <[email protected]> Authored: Thu Aug 13 17:33:37 2015 -0700 Committer: Davies Liu <[email protected]> Committed: Thu Aug 13 17:33:37 2015 -0700 ---------------------------------------------------------------------- python/pyspark/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/693949ba/python/pyspark/worker.py ---------------------------------------------------------------------- diff --git a/python/pyspark/worker.py b/python/pyspark/worker.py index 93df900..42c2f8b 100644 --- a/python/pyspark/worker.py +++ b/python/pyspark/worker.py @@ -146,5 +146,5 @@ if __name__ == '__main__': java_port = int(sys.stdin.readline()) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect(("127.0.0.1", java_port)) - sock_file = sock.makefile("a+", 65536) + sock_file = sock.makefile("rwb", 65536) main(sock_file, sock_file) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
