Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F9BBD356 for ; Wed, 26 Sep 2012 20:53:23 +0000 (UTC) Received: (qmail 16612 invoked by uid 500); 26 Sep 2012 20:53:18 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 16508 invoked by uid 500); 26 Sep 2012 20:53:18 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 16499 invoked by uid 99); 26 Sep 2012 20:53:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 20:53:18 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bejoy.hadoop@gmail.com designates 209.85.223.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 20:53:12 +0000 Received: by ieak11 with SMTP id k11so3048090iea.35 for ; Wed, 26 Sep 2012 13:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=3fMCD3G26uPzH05micbrs/U2wd86mj7p2kZor0WzQFw=; b=bTdgT980OCkVAexRPwIdO2dMGOfp0NkEVpHBPXxEK83HJpOMYDTLHaHYxvfT0/fK4D PxhnjQvecvuYhlS2PRLR8+HCEfhri1wO2YqlynCOQxlLyUdi+fLEjknSdROf5riQfBSR 7UTvgNgXwdrmtH9A/Zuao8epGJ4q8AXfpxvoGuFoTqaKb5ufSUyWlLMqXG1ndIAhLGeN yb7m80Z66j/sXETzDoiZiKyfis2Nvfyu61dScnRO68AsZNAAMwe4kVIFQviIv1kAsp2/ BFsuVpoG0pwAHH+6+DQZ0xngglXhjirF6odOU8nY2EejxolplpQgNISiCz39rSGWf5fT QzgQ== MIME-Version: 1.0 Received: by 10.43.12.137 with SMTP id pi9mr1425110icb.26.1348692770951; Wed, 26 Sep 2012 13:52:50 -0700 (PDT) Received: by 10.64.138.104 with HTTP; Wed, 26 Sep 2012 13:52:50 -0700 (PDT) In-Reply-To: References: Date: Thu, 27 Sep 2012 02:22:50 +0530 Message-ID: Subject: Re: Unit tests for Map and Reduce functions. From: Bejoy Ks To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=bcaec5186ff686127f04caa10126 --bcaec5186ff686127f04caa10126 Content-Type: text/plain; charset=ISO-8859-1 Hi Ravi You can take a look at mockito http://books.google.co.in/books?id=Nff49D7vnJcC&pg=PA138&lpg=PA138&dq=mockito+%2B+hadoop&source=bl&ots=IifyVu7yXp&sig=Q1LoxqAKO0nqRquus8jOW5CBiWY&hl=en&sa=X&ei=b2pjULHSOIPJrAeGsIHwAg&ved=0CC0Q6AEwAg#v=onepage&q=mockito%20%2B%20hadoop&f=false On Thu, Sep 27, 2012 at 2:09 AM, Kai Voigt wrote: > I don't know any other unit testing framework. > > Kai > > Am 26.09.2012 um 22:37 schrieb Ravi P : > > Thanks Kai, I am exploring MRunit . > Are there any other options/ways to write unit tests for Map and Reduce > functions. Would like to evaluate all options. > > - > Ravi > > ------------------------------ > From: hadooper@outlook.com > To: k@123.org > Subject: RE: Unit tests for Map and Reduce functions. > Date: Wed, 26 Sep 2012 13:35:57 -0700 > > Thanks Kai, Which MRUnit jar I should use for Hadoop 0.20 ? > > https://repository.apache.org/content/repositories/releases/org/apache/mrunit/mrunit/0.9.0-incubating/ > > - > Ravi > > ------------------------------ > From: k@123.org > Subject: Re: Unit tests for Map and Reduce functions. > Date: Wed, 26 Sep 2012 22:21:06 +0200 > To: user@hadoop.apache.org > > Hello, > > yes, http://mrunit.apache.org is your reference. MRUnit is a framework on > top of JUnit which emulates the mapreduce framework to test your mappers > and reducers. > > Kai > > Am 26.09.2012 um 22:18 schrieb Ravi P : > > Is it possible to write unit test for mapper Map , and reducer Reduce > function ? > > > - > Ravi > > > -- > Kai Voigt > k@123.org > > > -- > Kai Voigt > k@123.org > > > > > --bcaec5186ff686127f04caa10126 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Ravi

You can take a look at mockito=A0

=
http://books.google.co.in/books?i= d=3DNff49D7vnJcC&pg=3DPA138&lpg=3DPA138&dq=3Dmockito+%2B+hadoop= &source=3Dbl&ots=3DIifyVu7yXp&sig=3DQ1LoxqAKO0nqRquus8jOW5CBiWY= &hl=3Den&sa=3DX&ei=3Db2pjULHSOIPJrAeGsIHwAg&ved=3D0CC0Q6AEw= Ag#v=3Donepage&q=3Dmockito%20%2B%20hadoop&f=3Dfalse

On Thu, Sep 27, 2012 at 2:09 AM, Kai Voigt <= span dir=3D"ltr"><k@123.o= rg> wrote:
I don't know any other unit testing= framework.

Kai

Am 26.09.2012 um= 22:37 schrieb Ravi P <hadooper@outlook.com>:

Thanks Kai, =A0 I am exploring MRunit .=A0
Are there a= ny other options/ways to write unit tests for Map and Reduce functions. Wou= ld like to evaluate all options.

-
Ravi= =A0


From: hadooper@outlook.com
To: k@123.org
Subject: RE: Unit tests for Map and = Reduce functions.
Date: Wed, 26 Sep 2012 13:35:57 -0700

Thanks Kai,=A0Which MRUnit jar I should use for = Hadoop 0.20 ?

-
Ravi=A0


From: k@123.o= rg
Subject: Re: Unit tests for Map and Reduce functions.
Date: We= d, 26 Sep 2012 22:21:06 +0200
To: user@hadoop.apache.org

Hello,

yes,=A0http://mrunit.apache.org=A0is your refere= nce. MRUnit is a framework on top of JUnit which emulates the mapreduce fra= mework to test your mappers and reducers.

Kai

Am 26.09.2012 um= 22:18 schrieb Ravi P <hadooper@outlook.com>:

Is it possible to write unit test for mapper Map , and red= ucer Reduce function ?


-
Ravi

--=A0
Kai Voigt

--=A0
Kai Voigt





--bcaec5186ff686127f04caa10126--