Github user mateiz commented on the pull request:
https://github.com/apache/spark/pull/789#issuecomment-50441305
Ah, I see. In that case I'd prefer something like this:
```
MLlibUtils.registerKryoClasses(conf)
GraphXUtils.registerKryoClasses(conf)
conf.registerKryoClasses(Array(/* your classes */)
```
The one tricky bit is if two libraries use the same classes. Maybe we can
keep track of which classes are registered somehow, otherwise Kryo might get
confused.
---
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.
---