mrunit-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Wheeler <>
Subject Re: Reg: MultipleOutputFormat
Date Tue, 06 Nov 2012 15:05:30 GMT
Just to follow up, there is a JIRA filed requesting support for
MultipleOutputs (

On Tue, Nov 6, 2012 at 7:02 AM, Tom Wheeler <> wrote:
> I'm 99% sure that MRUnit does not currently support
> MultipleOutputFormat.  While I was unable to find a JIRA about this
> feature specifically, it's mentioned in an unresolved JIRA
> ( about future changes
> to the API.
> In the meantime, I think you could test much of this using JUnit.
> That is, you could have a test case that instantiates your class, then
> passes in a key and value to methods like generateActualKey,
> generateActualValue, generateFileNameForKeyValue, etc. followed by a
> check to see if they return the value you expect.  If you need to
> actually test the output itself, you'd probably need to use the
> MiniDFSCluster and MiniMRCluster classes to simulate a small cluster
> in a test case.
> On Tue, Nov 6, 2012 at 2:51 AM, AnilKumar B <> wrote:
>> Hi,
>> May I know, how to write MRUnit for multipleOutputFormats?
>> Most of my jobs consists of multipleOutputFormats but I am unable get the
>> information on how to write unit test for them.
>> Thanks,
>> B Anil Kumar.

View raw message