You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mrunit.apache.org by AnilKumar B <ak...@gmail.com> on 2013/05/30 08:05:40 UTC

Reg: MRUnit for Mapreduce job which has Distributed Cache usage

Hi,

I need to write MRUnit for my job which has only mapper, and it has
distributed cache usage for look up purpose.

I went through https://issues.apache.org/jira/browse/MRUNIT-98, but by
seeing the patch, it's not clear to me on usage. Is there any documentation
for usage?

What is the API in MRUnit to add files to DC?

Thanks,
B Anil Kumar.

Re: Reg: MRUnit for Mapreduce job which has Distributed Cache usage

Posted by Brock Noland <br...@cloudera.com>.
Hi,

Have you looked at the withCache* methods?

http://mrunit.apache.org/documentation/javadocs/1.0.0/org/apache/hadoop/mrunit/TestDriver.html#withCacheFile(java.net.URI)

Brock


On Thu, May 30, 2013 at 1:05 AM, AnilKumar B <ak...@gmail.com> wrote:

> Hi,
>
> I need to write MRUnit for my job which has only mapper, and it has
> distributed cache usage for look up purpose.
>
> I went through https://issues.apache.org/jira/browse/MRUNIT-98, but by
> seeing the patch, it's not clear to me on usage. Is there any documentation
> for usage?
>
> What is the API in MRUnit to add files to DC?
>
> Thanks,
> B Anil Kumar.
>



-- 
Apache MRUnit - Unit testing MapReduce - http://mrunit.apache.org