incubator-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-54) MSCRPlanner throws NPE while writing back a file using a materialized Pcollection
Date Thu, 30 Aug 2012 01:13:07 GMT

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

Josh Wills commented on CRUNCH-54:
----------------------------------

Hrm. So NPEs are never good, although I wouldn't recommend using Crunch in the way that it
is done in this test case-- you only want to materialize() a collection if you're going to
read the contents into the client. Also, so I'm clear, is this running against the refactored
planner from CRUNCH-34, and so we should fix it for 0.4.0?
                
> MSCRPlanner throws NPE while writing back a file using a materialized Pcollection
> ---------------------------------------------------------------------------------
>
>                 Key: CRUNCH-54
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-54
>             Project: Crunch
>          Issue Type: Bug
>          Components: IO
>            Reporter: Rahul Sharma
>         Attachments: MrPipelinetTest.java
>
>
> When we try to write back a materialized collection to a file using the To.Text(..) the
MCSPlanner throws back a NPE. 
> java.lang.NullPointerException
> 	at org.apache.crunch.impl.mr.plan.MSCRPlanner.constructJobPrototypes(MSCRPlanner.java:192)
> 	at org.apache.crunch.impl.mr.plan.MSCRPlanner.plan(MSCRPlanner.java:98)
> 	at org.apache.crunch.impl.mr.MRPipeline.run(MRPipeline.java:116)
> 	at org.apache.crunch.MrPipelinetTest.pipelineShouldNotFail(MrPipelinetTest.java:41)
> 	

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message