ITeye博客

MRUnit使用

zenoh · 2013-02-19 19:15 · hadoop · 编程语言 · Markdown

MRUnit是一个用于测试mapreduce程序的java框架,它可以很方便地测试Mapper和rudecer程序

 

使用方法:

在maven中加入下面配置:

<dependency>
      <groupId>org.apache.mrunit</groupId>
      <artifactId>mrunit</artifactId>
      <version>0.9.0-incubating</version>
      <classifier>hadoop2</classifier>
    </dependency>

 The MRUnit build process has changed to produce mrunit-0.9.0-hadoop1.jar and mrunit-0.9.0-hadoop2.jar instead of mrunit-0.9.0-hadoop020.jar, mrunit-0.9.0-hadoop100.jar and mrunit-0.9.0-hadoop023.jar. The hadoop1 classifier is for all Apahce Hadoop versions based off the 0.20.X line including 1.0.X. The hadoop2 classifier is for all Apache Hadoop versions based off the 0.23.X line including the unreleased 2.0.X.

 

 

参考:https://cwiki.apache.org/confluence/display/MRUNIT/Index

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。