Repository: spark Updated Branches: refs/heads/branch-1.4 041e720ec -> db71ea482
[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. (cherry picked from commit 693949ba4096c01a0b41da2542ff316823464a16) Signed-off-by: Davies Liu <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/db71ea48 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/db71ea48 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/db71ea48 Branch: refs/heads/branch-1.4 Commit: db71ea482fbabea447f25f3130a705fd95e7e094 Parents: 041e720 Author: Davies Liu <[email protected]> Authored: Thu Aug 13 17:33:37 2015 -0700 Committer: Davies Liu <[email protected]> Committed: Thu Aug 13 17:34:02 2015 -0700 ---------------------------------------------------------------------- python/pyspark/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/db71ea48/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]
