mrunit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Donofrio (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MRUNIT-65) return better error message when mapper or reducer is null for MapDriver or ReduceDriver
Date Sun, 26 Feb 2012 10:04:48 GMT

     [ https://issues.apache.org/jira/browse/MRUNIT-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jim Donofrio updated MRUNIT-65:
-------------------------------

    Attachment: MRUNIT-65-1.patch

add log warning message to MapReduceDriver to notify user that they have added no inputs
add checks in old and new api Map and ReduceDriver to check for null mapper or reducer, throw
IllegalStateExcpetion if null with message such as "No Mapper class was provided"
this exception carries over to the MapReduceDriver class in the old and new api and the Pipeline
class. The Pipeline class will also catch and rethrow the exception to state which stage there
was no mapper or reducer
                
> return better error message when mapper or reducer is null for MapDriver or ReduceDriver
> ----------------------------------------------------------------------------------------
>
>                 Key: MRUNIT-65
>                 URL: https://issues.apache.org/jira/browse/MRUNIT-65
>             Project: MRUnit
>          Issue Type: Improvement
>            Reporter: Jim Donofrio
>            Priority: Minor
>         Attachments: MRUNIT-65-1.patch
>
>
> Currently if you use the default constructor for MapDriver or ReduceDriver you just get
a nullpointer exception instead of a more meaningful error stating that you did not specify
a mapper or reducer class

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message