Friday, 15 February 2013

hadoop - what to use in place of mrunit withInputValue deprecated -



hadoop - what to use in place of mrunit withInputValue deprecated -

i using mrunit test map cut down code. can't utilize .withinputvalue deprecated. not locate equivalent works. setinputvalue not work either. work-around?

use withinput(). exmaple (this. mrunit-1.0.0-hadoop2.jar )

mapdriver<longwritable,text,text,intwritable> mapdriver; ... mapdriver.withinput(new longwritable(), new text("some line of text)); mapdriver.withoutput(new text("some key)); new intwritable(..)); mapdriver.runtest();

here's maven dependency. note hadoop2 classifier.

<dependency> <groupid>org.apache.mrunit</groupid> <artifactid>mrunit</artifactid> <version>1.0.0</version> <classifier>hadoop2</classifier> </dependency>

for more info, see tutorial

hadoop mrunit

No comments:

Post a Comment