You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Pedro Sá da Costa <ps...@gmail.com> on 2013/02/21 21:11:54 UTC
who runs the map and reduce tasks in the unit tests
Hi,
In Hadoop MR unit tests, the classes uses the
./core/org/apache/hadoop/util/Tool.java, and
./core/org/apache/hadoop/util/ToolRunner.java tosubmit the job. But to
run the unit tests it seems that it's not needed the MR be running. If
so, who runs the map and reduce tasks?
--
Best regards,
P
Re: who runs the map and reduce tasks in the unit tests
Posted by Vinod Kumar Vavilapalli <vi...@hortonworks.com>.
Not sure which specific tests you are talking about. There are two types of them:
- Real unit tests which unit test code, shouldn't run any MR jobs
- The remaining 'unit' tests are really integration tests. They start MiniMRCluster and MiniDFSCluster (which are basically in-JVM MR and DFS) and submit jobs to them.
HTH
+Vinod Kumar Vavilapalli
Hortonworks Inc.
http://hortonworks.com/
On Feb 21, 2013, at 12:11 PM, Pedro Sá da Costa wrote:
> Hi,
>
> In Hadoop MR unit tests, the classes uses the
> ./core/org/apache/hadoop/util/Tool.java, and
> ./core/org/apache/hadoop/util/ToolRunner.java tosubmit the job. But to
> run the unit tests it seems that it's not needed the MR be running. If
> so, who runs the map and reduce tasks?
>
>
> --
> Best regards,
> P