Github user kanzhang commented on the pull request:
https://github.com/apache/spark/pull/1338#issuecomment-49807264
@MLnick I merely removed it from programming guide. The functionality (and
your test) is still there should anyone wants to try it.
@mateiz I meant when reading JavaBeans, you get a dict of attributes to
values on the Python side. But you can't turn around and save it as JavaBeans
from Python. What you save is a Java Map since that's what Pyrolite will pickle
a dict to. I was trying to confirm the same asymmetry on the saving side (i.e.,
saving a Python custom object as Java Map, and reads it back as a Python dict),
but I got the following exception and gave up.
```
Py4JJavaError: An error occurred while calling
z:org.apache.spark.api.python.PythonRDD.saveAsSequenceFile.
: org.apache.spark.SparkException: Job aborted due to stage failure: Task
33.0:2 failed 1 times, most recent failure: Exception failure in TID 70 on host
localhost: net.razorvine.pickle.InvalidOpcodeException: opcode not implemented:
OBJ
net.razorvine.pickle.Unpickler.dispatch(Unpickler.java:223)
net.razorvine.pickle.Unpickler.load(Unpickler.java:84)
net.razorvine.pickle.Unpickler.loads(Unpickler.java:97)
```
---
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.
---