diff options
author | Shixiong Zhu <shixiong@databricks.com> | 2016-01-12 14:27:05 -0800 |
---|---|---|
committer | Shixiong Zhu <shixiong@databricks.com> | 2016-01-12 14:27:05 -0800 |
commit | 4f60651cbec1b4c9cc2e6d832ace77e89a233f3a (patch) | |
tree | 44fd285926f1db63488710d610bc9be38fd274b0 /python/pyspark/streaming/util.py | |
parent | 8ed5f12d2bb408bd37e4156b5f1bad9a6b8c3cb5 (diff) | |
download | spark-4f60651cbec1b4c9cc2e6d832ace77e89a233f3a.tar.gz spark-4f60651cbec1b4c9cc2e6d832ace77e89a233f3a.tar.bz2 spark-4f60651cbec1b4c9cc2e6d832ace77e89a233f3a.zip |
[SPARK-12652][PYSPARK] Upgrade Py4J to 0.9.1
- [x] Upgrade Py4J to 0.9.1
- [x] SPARK-12657: Revert SPARK-12617
- [x] SPARK-12658: Revert SPARK-12511
- Still keep the change that only reading checkpoint once. This is a manual change and worth to take a look carefully. https://github.com/zsxwing/spark/commit/bfd4b5c040eb29394c3132af3c670b1a7272457c
- [x] Verify no leak any more after reverting our workarounds
Author: Shixiong Zhu <shixiong@databricks.com>
Closes #10692 from zsxwing/py4j-0.9.1.
Diffstat (limited to 'python/pyspark/streaming/util.py')
-rw-r--r-- | python/pyspark/streaming/util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/pyspark/streaming/util.py b/python/pyspark/streaming/util.py index e617fc9ce9..abbbf6eb93 100644 --- a/python/pyspark/streaming/util.py +++ b/python/pyspark/streaming/util.py @@ -89,10 +89,11 @@ class TransformFunctionSerializer(object): it uses this class to invoke Python, which returns the serialized function as a byte array. """ - def init(self, ctx, serializer, gateway=None): + def __init__(self, ctx, serializer, gateway=None): self.ctx = ctx self.serializer = serializer self.gateway = gateway or self.ctx._gateway + self.gateway.jvm.PythonDStream.registerSerializer(self) self.failure = None def dumps(self, id): |