You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mrunit.apache.org by "Jim Donofrio (Created) (JIRA)" <ji...@apache.org> on 2012/02/26 07:37:48 UTC

[jira] [Created] (MRUNIT-65) return better error message when mapper or reducer is null

return better error message when mapper or reducer is null
----------------------------------------------------------

                 Key: MRUNIT-65
                 URL: https://issues.apache.org/jira/browse/MRUNIT-65
             Project: MRUnit
          Issue Type: Improvement
            Reporter: Jim Donofrio
            Priority: Minor


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

        

[jira] [Updated] (MRUNIT-65) return better error message when mapper or reducer is null for MapDriver or ReduceDriver

Posted by "Jim Donofrio (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MRUNIT-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Summary: return better error message when mapper or reducer is null for MapDriver or ReduceDriver  (was: return better error message when mapper or reducer is null)
    
> 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
>
> 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

        

[jira] [Updated] (MRUNIT-65) return better error message when mapper or reducer is null for MapDriver or ReduceDriver

Posted by "Jim Donofrio (Updated) (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Resolved] (MRUNIT-65) return better error message when mapper or reducer is null for MapDriver or ReduceDriver

Posted by "Brock Noland (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MRUNIT-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brock Noland resolved MRUNIT-65.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.0
         Assignee: Jim Donofrio

Committed to trunk in 1293865. Thank you for your contribution!
                
> 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
>            Assignee: Jim Donofrio
>            Priority: Minor
>             Fix For: 1.0.0
>
>         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

        

[jira] [Commented] (MRUNIT-65) return better error message when mapper or reducer is null for MapDriver or ReduceDriver

Posted by "Brock Noland (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MRUNIT-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216646#comment-13216646 ] 

Brock Noland commented on MRUNIT-65:
------------------------------------

This is a great jira.
                
> 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
>
> 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