You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Frédéric Bertin <fr...@anyware-tech.com> on 2006/09/07 16:50:54 UTC

include test utility classes into hadoop's jar?

Hi all,

I met a small problem today, writing tests for map/reduce jobs. Indeed, 
I wanted to reuse the MiniMRCluster class, located in Hadoop's test 
source tree.
However, this source tree is not included in Hadoop's jar, which my 
project depends on. That's why I had no other solution than copying this 
class in my project's source tree (keeping it in its original package, 
otherwise it doesn't work).

I see two possible solutions:

    * move test *utility* classes (not test classes themselves) in a
      test package in the main source tree
    * release a hadoop-test.jar together with the current hadoop.jar

I personaly prefer the first solution.

WDYT?

Thanks.

Fred