Registry / testing / mrunit

mrunit

JSON →
library1.1.0javamavenunverified

A Java library for unit testing Apache Hadoop MapReduce jobs.

<dependency> <groupId>org.apache.mrunit</groupId> <artifactId>mrunit</artifactId> <version>1.1.0</version> </dependency>
INSTALL
IMPORT
SIG · MRUNIT
M
mrunit
testingjavav1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MapDriver
org.apache.hadoop.mrunit.MapDriver

Test a MapReduce mapper using MRUnit.

import org.apache.hadoop.mrunit.MapDriver; import org.apache.hadoop.io.Text; import org.apache.hadoop.io.IntWritable; public class Example { public static void main(String[] args) throws Exception { MapDriver<Text, IntWritable, Text, IntWritable> driver = new MapDriver<>(); driver.withMapper(new MyMapper()); driver.withInput(new Text("key"), new IntWritable(1)); driver.runTest(); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mrunit — mvn dependency:get mrunit · libregistry