Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C99CCDC99 for ; Tue, 25 Sep 2012 07:19:05 +0000 (UTC) Received: (qmail 27127 invoked by uid 500); 25 Sep 2012 07:19:04 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 26951 invoked by uid 500); 25 Sep 2012 07:19:03 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 26930 invoked by uid 99); 25 Sep 2012 07:19:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 07:19:03 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dechouxb@gmail.com designates 209.85.216.41 as permitted sender) Received: from [209.85.216.41] (HELO mail-qa0-f41.google.com) (209.85.216.41) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 07:18:58 +0000 Received: by qatp27 with SMTP id p27so2159992qat.14 for ; Tue, 25 Sep 2012 00:18:37 -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=NY9UTaJfrmxiqOmgccaMzVsk3S09XEyu56RmPIDoHCo=; b=V7SIBp+yropMPTScJuHztozE9YEkw7TG+vna7mh57Pp14Lmcv5jy+BUjJ3ndmSoESX fLdGnThyonoIKug/qsLVNutVWGxsdZaWon4Cfs+s0s4KKAm9UhGj0UeH8KTF5ILHoFgW GiYy4N72ViUP1zd29DytKiAgy2F4357KnQUKdklTEOr/26mW5FfucWw7Kq4yaq6xx8tb Jy5RWQv98mcvZJwkXKSgdZ3Wd83VDNFO5me90GquTJAZZkre3IwBUSS8ih0UT+MX+Rrp RqT3e2XDl8LFSZaZJjrS9p06Hoj97izI+Lr+R58jYm+T5VcPPcArqy39UumKfYLas6LK d5pA== MIME-Version: 1.0 Received: by 10.224.31.201 with SMTP id z9mr37554501qac.94.1348557517622; Tue, 25 Sep 2012 00:18:37 -0700 (PDT) Received: by 10.49.71.231 with HTTP; Tue, 25 Sep 2012 00:18:37 -0700 (PDT) In-Reply-To: References: Date: Tue, 25 Sep 2012 09:18:37 +0200 Message-ID: Subject: Re: Simple way to unit test HBase Map reduce jobs? From: Bertrand Dechoux To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf3074d57ccc0ed304ca818343 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3074d57ccc0ed304ca818343 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable "Apache MRUnit =99 is a Java library that helps developers unit test Apache Hadoop map reduce jobs." That is every kind of mapper and reducer can be tested with it. That is to say, there is no specific support of HBase. If you can manage by yourself to provide the key/value that you should received from HBase, MRUnit is the right tool for testing the logic that should work on these data. With MRUnit, you will can write fine grained unit tests. There is currently no stable support of miniCluster. If there is a mishandling of data (like using a shared static variable), it may not show with MRunit. I am curious about the 'miniserver'. That's an equivalent of miniCluster but for hbase processes/daemons? Or was that your question? It could indeed be very useful for local integration test. Regards Bertrand On Tue, Sep 25, 2012 at 8:55 AM, Eugeny Morozov wrote: > Hi, Elazar, > > I've found that MRUnit is pretty convenient way to test MR jobs. > On the other hand there is HBaseTestingUtility, which is helpful to run > miniCluster. > > Hope this helps. > > On Mon, Sep 24, 2012 at 8:43 PM, Elazar Leibovich > wrote: > > > Is there a way similar to miniserver to test map reduce jobs on somethi= ng > > similar to miniCluster? > > > > > > -- > Evgeny Morozov > Developer Grid Dynamics > Skype: morozov.evgeny > www.griddynamics.com > emorozov@griddynamics.com > --=20 Bertrand Dechoux --20cf3074d57ccc0ed304ca818343--