Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@minotaur.apache.org Received: (qmail 19224 invoked from network); 8 Jul 2009 05:50:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jul 2009 05:50:37 -0000 Received: (qmail 22482 invoked by uid 500); 8 Jul 2009 05:50:46 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 22456 invoked by uid 500); 8 Jul 2009 05:50:46 -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 22413 invoked by uid 99); 8 Jul 2009 05:50:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 05:50:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of saint.ack@gmail.com designates 74.125.92.26 as permitted sender) Received: from [74.125.92.26] (HELO qw-out-2122.google.com) (74.125.92.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 05:50:35 +0000 Received: by qw-out-2122.google.com with SMTP id 8so2062801qwh.35 for ; Tue, 07 Jul 2009 22:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=jWTvfBk7vuIX1sIquv7d5kO+qtIoUgiotDgJDTfurHk=; b=G2y/jAAyhHbrUtHiC+Y5eEkIdc5jdLAw/g/u6hoy5yhUQ+B7lhO/g0paCEfnzr7NlB s//SGs7W+a56yu2MjUMxO5KBmp1pVTkRptMLsOtPhf4ivSZXbm7ftQsxMCJnbSGZwcer ghcqVFk8g+kwt93sp/Mlc3fIaBN44Vsr1Imn8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=m29QiPFKXHmyFbZhVWaDxaAObWx8gI1zDi605Hvq0Z9vWx0diLf31/6STsryCBN1F0 GX449YkJNcUE6S7mYIAwECirQUX3OEdaGg3bJF+lN6CIEOZcLJzREQQO1O/pWDfE8MZ6 3eU7yBgTneMJX3LkALySy6VwhDQivzhbmgwBA= MIME-Version: 1.0 Sender: saint.ack@gmail.com Received: by 10.229.85.143 with SMTP id o15mr3637015qcl.1.1247032214708; Tue, 07 Jul 2009 22:50:14 -0700 (PDT) In-Reply-To: <24385603.post@talk.nabble.com> References: <24385603.post@talk.nabble.com> Date: Tue, 7 Jul 2009 22:50:12 -0700 X-Google-Sender-Auth: 70c8e33661197a0c Message-ID: <7c962aed0907072250o68a95b23v56721f2f8ee2423b@mail.gmail.com> Subject: Re: delete all rows in table From: stack To: hbase-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=0016364ef3d22e7625046e2b50aa X-Virus-Checked: Checked by ClamAV on apache.org --0016364ef3d22e7625046e2b50aa Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit You could do that but would probably take some time. Or you could truncate the table via the shell. This does disable, drop, recreate in 0.19.x. In TRUNK, it does disable, drop, major compaction of .META. table, and then recreate (there is a known issue around dropping a big table. A workaround is to run major compaction on the .META. table. In 0.19.x, you can do this from the shell by doing 'major_compact ".META."'). Be warned that if your table is big, users report our enable/disable is a flakey. You might have to do it a few times to ensure all regions disabled before delete will succeed (fix coming...). St.Ack On Tue, Jul 7, 2009 at 10:34 PM, Ishaaq Chandy wrote: > > Hi guys, > What is the quickest way to delete all the rows in a table without deleting > the table itself? The only way I can see would be to use a scanner. Is this > right? I am using 0.19.3. > > Thanks, > Ishaaq > -- > View this message in context: > http://www.nabble.com/delete-all-rows-in-table-tp24385603p24385603.html > Sent from the HBase User mailing list archive at Nabble.com. > > --0016364ef3d22e7625046e2b50aa--