Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C4989961 for ; Tue, 10 Apr 2012 19:58:04 +0000 (UTC) Received: (qmail 83380 invoked by uid 500); 10 Apr 2012 19:58:04 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 83358 invoked by uid 500); 10 Apr 2012 19:58:04 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 83347 invoked by uid 99); 10 Apr 2012 19:58:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 19:58:04 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [206.112.75.238] (HELO iron-d-outbound.osis.gov) (206.112.75.238) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 19:57:56 +0000 X-IronPort-AV: E=Sophos;i="4.75,400,1330923600"; d="scan'208";a="97616485" Received: from netmgmt.ext.intelink.gov (HELO ww4.ugov.gov) ([172.16.11.235]) by iron-d-outbound.osis.gov with ESMTP; 10 Apr 2012 15:55:33 -0400 Date: Tue, 10 Apr 2012 19:57:33 +0000 (GMT+00:00) From: Billie J Rinaldi To: dev@accumulo.apache.org Message-ID: <1638671814.380637.1334087853249.JavaMail.root@linzimmb04o.imo.intelink.gov> In-Reply-To: Subject: Re: Could combiners be coded using groovy? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.2.188.65] X-Mailer: Zimbra 6.0.7_GA_2476.RHEL4 (ZimbraWebClient - SAF3 (Mac)/6.0.7_GA_2473.RHEL5_64) I'm not familiar with Groovy, but it sounds interesting. I could recommend some ways to test your iterator before you push it out to Accumulo. You can make some fake data for a unit test by creating a TreeMap and then using a SortedMapIterator to turn that into a source for your iterator. A lot of our unit tests look like the following. TreeMap tm = new TreeMap(); // put some data into the tree map MyIterator iter = new MyIterator(); IteratorSetting is = new IteratorSetting(1, MyIterator.class); MyIterator.setSomeOption(is, option); iter.init(new SortedMapIterator(tm), is.getOptions(), null); iter.seek(new Range(), new ArrayList(), false); while (iter.hasTop()) { Key k = iter.getTopKey(); Value v = iter.getTopValue(); // check that k and v are what you expected iter.next(); } Another option is to use the ClientSideIteratorScanner to test your iterator in your local JVM before running it on a tserver. Billie On Sunday, April 8, 2012 11:08:05 PM, "David Medinets" wrote: > I was working with combiners and seeing the jar file loaded and > reloaded. And seeing my accumulo crash because I coded the combiner > incorrectly. I started to wonder how easier it might be to easy a > dynamically compiled language like Groovy to developer combiners. > > How hard would it be to integrate Groovy? Have any of the core > accumulo developers used groovy? > > Is there a better language than groovy now? I last worked with groovy > #$%$ years ago. It worked very well for me.