Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@locus.apache.org Received: (qmail 73356 invoked from network); 16 May 2008 04:15:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2008 04:15:56 -0000 Received: (qmail 17166 invoked by uid 500); 16 May 2008 04:15:57 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 17149 invoked by uid 500); 16 May 2008 04:15:57 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 17138 invoked by uid 99); 16 May 2008 04:15:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 21:15:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [166.111.8.80] (HELO smtp.tsinghua.edu.cn) (166.111.8.80) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 04:14:52 +0000 Received: from th114153.ip.tsinghua.edu.cn ([59.66.114.153] helo=[127.0.0.1]) by smtp.tsinghua.edu.cn with esmtpa (Exim 4.63) (envelope-from ) id 1JwrJW-0001oc-Bf for hbase-user@hadoop.apache.org; Fri, 16 May 2008 12:13:02 +0800 Message-ID: <482D099A.9030401@mails.tsinghua.edu.cn> Date: Fri, 16 May 2008 12:12:10 +0800 From: Zhou Wei User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: hbase-user@hadoop.apache.org Subject: Re: Does HBase support single-row transaction? References: <9B861E77-0EBA-4F6E-B8BF-32CD8AC2A38E@wensel.net> <3965D9BA-54E1-4263-8185-051CD95D2699@wensel.net> <30179AAC-403B-4839-AFA0-42892A236A75@wensel.net> <48223875.4090205@duboce.net> <48226A02.2050005@mails.tsinghua.edu.cn> <48269798.9010505@mails.tsinghua.edu.cn> <6EB716E3-6AF1-4DDF-A3BE-4C9FABDD69CE@rapleaf.com> In-Reply-To: <6EB716E3-6AF1-4DDF-A3BE-4C9FABDD69CE@rapleaf.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Bryan Duxbury wrote: > Currently, it's not on our list of things to do. There are a number of > reasons why it would be better to use Zookeeper here than to try and > build it into HBase. > > That said, I think you could get everything you need if you tried > Zookeeper, using that to acquire locks on the row you need a > transaction on. It's supposedly very high performance and supports > your use case precisely. > > -Bryan Thanks. > > On May 10, 2008, at 11:52 PM, Zhou Wei wrote: > >> Bryan Duxbury 写道: >>> startUpdate is deprecated in TRUNK. Also, it doesn't do what you are >>> thinking it does. Committing a BatchUpdate is atomic across the >>> whole row, however. There is currently no way to make a get and a >>> commit transactional, though there is an issue open for >>> write-if-not-modified-since support. If this is something you need >>> we can talk about how it might be supported. > > > >