crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Wills (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CRUNCH-321) materializeToMap() fails with NotSerializableException
Date Fri, 14 Feb 2014 02:19:20 GMT

    [ https://issues.apache.org/jira/browse/CRUNCH-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13901031#comment-13901031
] 

Josh Wills commented on CRUNCH-321:
-----------------------------------

Hey Jason-- thanks for the heads up here; I can reason about how that would occur whenever
the number of reducers needed is > 1. Will put a fix together.

> materializeToMap() fails with NotSerializableException
> ------------------------------------------------------
>
>                 Key: CRUNCH-321
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-321
>             Project: Crunch
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jason Gauci
>            Assignee: Josh Wills
>
> Trying to use materializeToMap() with Writables.tableOf(Writables.strings(), PTypes.thrifts(PartInfo.class,
rawInput.getTypeFamily()) results in NotSerializableException.  Here is the error log:
> Exception in thread "main" org.apache.crunch.CrunchRuntimeException: java.io.NotSerializableException:
org.apache.crunch.materialize.MaterializableMap
> 	at org.apache.crunch.impl.mr.MRPipeline.plan(MRPipeline.java:104)
> 	at org.apache.crunch.impl.mr.MRPipeline.runAsync(MRPipeline.java:123)
> 	at org.apache.crunch.impl.mr.MRPipeline.run(MRPipeline.java:111)
> 	at org.apache.crunch.materialize.MaterializableIterable.iterator(MaterializableIterable.java:68)
> ...	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
> Caused by: java.io.NotSerializableException: org.apache.crunch.materialize.MaterializableMap
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
> 	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
> 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
> 	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
> 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
> 	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
> 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
> 	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
> 	at java.util.ArrayList.writeObject(ArrayList.java:710)
> 	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975)
> 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
> 	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
> 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
> 	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
> 	at java.util.ArrayList.writeObject(ArrayList.java:710)
> 	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975)
> 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
> 	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
> 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
> 	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
> 	at java.util.ArrayList.writeObject(ArrayList.java:710)
> 	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975)
> 	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
> 	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
> 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
> 	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
> 	at org.apache.crunch.util.DistCache.write(DistCache.java:55)
> 	at org.apache.crunch.impl.mr.plan.JobPrototype.serialize(JobPrototype.java:242)
> 	at org.apache.crunch.impl.mr.plan.JobPrototype.build(JobPrototype.java:186)
> 	at org.apache.crunch.impl.mr.plan.JobPrototype.getCrunchJob(JobPrototype.java:134)
> 	at org.apache.crunch.impl.mr.plan.JobPrototype.getCrunchJob(JobPrototype.java:136)
> 	at org.apache.crunch.impl.mr.plan.JobPrototype.getCrunchJob(JobPrototype.java:136)
> 	at org.apache.crunch.impl.mr.plan.MSCRPlanner.plan(MSCRPlanner.java:165)
> 	at org.apache.crunch.impl.mr.MRPipeline.plan(MRPipeline.java:102)
> 	... 10 more



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message