Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-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 6AC86915C for ; Wed, 11 Apr 2012 02:51:56 +0000 (UTC) Received: (qmail 99449 invoked by uid 500); 11 Apr 2012 02:51:56 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 99411 invoked by uid 500); 11 Apr 2012 02:51:56 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 99397 invoked by uid 99); 11 Apr 2012 02:51:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 02:51:55 +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: domain of david.medinets@gmail.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pb0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 02:51:48 +0000 Received: by pbcup15 with SMTP id up15so703842pbc.0 for ; Tue, 10 Apr 2012 19:51:27 -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:content-transfer-encoding; bh=4xJp+n7A2f0j8OeQNVbLwbmTinSwHHxNHjiPS1+R8ow=; b=VfnfvpQeO8PkC2Bn7fmuBvzvlf0g24MovsoNoqVVBqmucQ6DFNnHc1Hwkk2sNsnPf+ QpTmGdFRrxbW3q/I6bGY8BbERdq7MwaVN/ZR7cw//KiUdOqk6ald9Z39s+JH3LbE8qXm NkmyDMAw8/pLu5QyBAEnzjWwwgEda6lD7FqpDUkVDaagAFlghTHbci588frXBSHzz70t s1N9hkZAXZGnuCt/d6wk+wGCl6Rgzu+TWNsLluqSBUo3zWZ1uGq8M6Bi0IUEmKhOm++n T8DS5fbZCSGwK6TSx0Gfqmm7HW0QFe3SXRAHYcz0Np5WAcaTUxz/NhpQtJ6zmIe03Evr z3Zg== MIME-Version: 1.0 Received: by 10.68.240.135 with SMTP id wa7mr34125344pbc.7.1334112686818; Tue, 10 Apr 2012 19:51:26 -0700 (PDT) Received: by 10.68.63.73 with HTTP; Tue, 10 Apr 2012 19:51:26 -0700 (PDT) In-Reply-To: <0C1EDA00-FFED-4185-8A5F-2B761AE3B689@gmail.com> References: <0C1EDA00-FFED-4185-8A5F-2B761AE3B689@gmail.com> Date: Tue, 10 Apr 2012 22:51:26 -0400 Message-ID: Subject: Re: Using maxVersions=7 but rows disappear From: David Medinets To: user@accumulo.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I thought there were issues associated with doing mutations inside iterator= s? On Tue, Apr 10, 2012 at 10:35 PM, William Slacum wrote: > I don't think you'd necessarily need a an aggregator for that, although i= t doesn't seem like that's what you're doing here in the first place. Would= n't it be easier to set a summation iterator that also keeps a count of of = observations to do some server side math and then combine it all on the cli= ent? That way you can have a time series and to get weekly averages you jus= t change your scan range. > On Apr 10, 2012, at 10:16 PM, David Medinets wrote: > >> I'm still thinking about how to use accumulo to calculate weekly >> moving averages. I thought that using the maxVersions settings might >> work to maintain the last 7 values. Then a program could simply sum >> the values of a given row. So this is what I did: >> >> bin/accumulo shell -u root -p password >>> createtable rolling >> rolling> config -t rolling -s table.iterator.scan.vers.opt.maxVersions= =3D7 >> rolling> insert row cf cq 1 >> rolling> insert row cf cq 2 >> rolling> insert row cf cq 3 >> rolling> insert row cf cq 4 >> rolling> insert row cf cq 5 >> rolling> insert row cf cq 6 >> rolling> insert row cf cq 7 >> rolling> insert row cf cq 8 >> rolling> scan >> row cf:cq [] =A0 =A08 >> row cf:cq [] =A0 =A07 >> row cf:cq [] =A0 =A06 >> row cf:cq [] =A0 =A05 >> row cf:cq [] =A0 =A04 >> row cf:cq [] =A0 =A03 >> row cf:cq [] =A0 =A02 >> >> This is exactly what I wanted to see. So I wrote a simple scanner >> program to read the table. Then I did another scan: >> >> rolling> scan >> row cf:cq [] =A0 =A08 >> >> Where did the rest of the records go? >