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 CB55EF5B4 for ; Fri, 19 Apr 2013 23:57:46 +0000 (UTC) Received: (qmail 74209 invoked by uid 500); 19 Apr 2013 23:57:44 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 74147 invoked by uid 500); 19 Apr 2013 23:57:44 -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 Delivered-To: moderator for user@hbase.apache.org Received: (qmail 60207 invoked by uid 99); 19 Apr 2013 20:42:20 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of m0brhm@gmail.com designates 74.125.82.180 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=OIJ+xMM+1flQWA+qywrfY+kRD57kehm+P0MG+zCXXbg=; b=sGsNKUFUh2i4QtCQwppM+Z23e8VV+HzaoKr8pT8LGC2K0rvtTK2nTdQ20cz+ve3BbG bv3OOuY+FobA8A56+qDmEg0sgodci4bwUXqMqFY7QfJwIaiDq8spgLv9yPFzN+ObGSCW 8eZS106puO0XeVTypUmXUC7qQfCFyb0gaz1DHgn8iOaVQEjGKnTWgigV22J8NssiWiZK UHhaxH/Qq1MVXLFwKPhfBkoKa/dBXjcj1xELEclIcYfwiy8CBQ8hIHo1r3+hhioU0GLA 2rSRR1AQrJeVPc2etLjulQD4zfCiximKqELaMEfhzacfYGHmp2/DHDU4FQ2Im1/y5Dep AEtQ== MIME-Version: 1.0 X-Received: by 10.180.210.225 with SMTP id mx1mr1569895wic.15.1366404115125; Fri, 19 Apr 2013 13:41:55 -0700 (PDT) Sender: m0brhm@gmail.com In-Reply-To: References: Date: Fri, 19 Apr 2013 16:41:55 -0400 X-Google-Sender-Auth: 5v9OHkwcqSKdpzCAhpKoHcC61uY Message-ID: Subject: Re: Overwrite a row From: Mohamed Ibrahim To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a11c26ac6e6e13204dabcbf65 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c26ac6e6e13204dabcbf65 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Actually I do see it in the 0.94 JavaDocs ( http://hbase.apache.org/0.94/apidocs/org/apache/hadoop/hbase/client/HTable.= html#mutateRow(org.apache.hadoop.hbase.client.RowMutations) ), so may be it was added in 0.94.6 even though the jira says fixed in 0.95 . I haven't used it though, but it seems that's what you're looking for. Sorry for confusion. Mohamed On Fri, Apr 19, 2013 at 4:35 PM, Mohamed Ibrahim wro= te: > It seems that 0.95 is not released yet, mutateRow won't be a solution for > now. I saw it in the downloads and I thought it was released. > > > On Fri, Apr 19, 2013 at 4:18 PM, Mohamed Ibrahim w= rote: > >> Just noticed you want to delete as well. I think that's supported since >> 0.95 in mutateRow ( >> http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HTable.ht= ml#mutateRow(org.apache.hadoop.hbase.client.RowMutations) ). >> You can do multiple puts and deletes and they will be performed atomical= ly. >> So you can remove qualifiers and put new ones. >> >> Mohamed >> >> >> On Fri, Apr 19, 2013 at 3:44 PM, Kristoffer Sj=F6gren = wrote: >> >>> What would you suggest? I want the operation to be atomic. >>> >>> >>> On Fri, Apr 19, 2013 at 8:32 PM, Ted Yu wrote: >>> >>> > What is the maximum number of versions do you allow for the underlyin= g >>> > table ? >>> > >>> > Thanks >>> > >>> > On Fri, Apr 19, 2013 at 10:53 AM, Kristoffer Sj=F6gren >> > >wrote: >>> > >>> > > Hi >>> > > >>> > > Is it possible to completely overwrite/replace a row in a single >>> _atomic_ >>> > > action? Already existing columns and qualifiers should be removed i= f >>> they >>> > > do not exist in the data inserted into the row. >>> > > >>> > > The only way to do this is to first delete the row then insert new >>> data >>> > in >>> > > its place, correct? Or is there an operation to do this? >>> > > >>> > > Cheers, >>> > > -Kristoffer >>> > > >>> > >>> >> >> > --001a11c26ac6e6e13204dabcbf65--