GitHub user JoshRosen opened a pull request:
https://github.com/apache/spark/pull/3831
[SPARK-4882] Register PythonBroadcast with Kryo so that PySpark works with
KryoSerializer
This PR fixes an issue where PySpark broadcast variables caused
NullPointerExceptions if KryoSerializer was used. The fix is to register
PythonBroadcast with Kryo so that it's deserialized with a KryoJavaSerializer.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/JoshRosen/spark SPARK-4882
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/3831.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3831
----
commit 069d8a7a6f38019b3ad982ba4f9d1733a27b2909
Author: Josh Rosen <[email protected]>
Date: 2014-12-29T20:13:04Z
Add failing test for SPARK-4882
commit d5b409f78adcf3498f48728bc66066a478816d73
Author: Josh Rosen <[email protected]>
Date: 2014-12-29T20:15:53Z
Enable registrationRequired, which would have caught this bug.
commit 0466c7ab6c586b4d47dd3fafe303cca9205749ad
Author: Josh Rosen <[email protected]>
Date: 2014-12-29T20:21:57Z
Register PythonBroadcast with Kryo.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]