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 92DF7178EC for ; Sun, 28 Sep 2014 01:54:43 +0000 (UTC) Received: (qmail 95702 invoked by uid 500); 28 Sep 2014 01:54:42 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 95653 invoked by uid 500); 28 Sep 2014 01:54:41 -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 Received: (qmail 95640 invoked by uid 99); 28 Sep 2014 01:54:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Sep 2014 01:54:41 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yeweichen2010@gmail.com designates 209.85.192.43 as permitted sender) Received: from [209.85.192.43] (HELO mail-qg0-f43.google.com) (209.85.192.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Sep 2014 01:54:10 +0000 Received: by mail-qg0-f43.google.com with SMTP id j107so1871089qga.2 for ; Sat, 27 Sep 2014 18:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=IZHYh8f8c/ZNP6DVTvOdMGdlY3FGJmuSxbnQoNpOuCg=; b=hx3t7ruPBhOKb1lN7FPC1AzH3cQy6MRWjtKB7R1/UG8h/Sfq8xHQ9Mh9c3xYnWhR/9 SgvvJSsloCOf7UnBOxZv62sN8bCY65MDkGPaDFXHHGl1V4d11iEufmnid0Cz1EzTmDFl U9ueUCXVOHQCQ61ZTSFMWHeKtWXOvB0LUDdDLklmW+wZfoKIaiHCZ/n2rygnx84/U80P N+qj/G4ZlQi88gCb2o5D7r50gfcWYk1s+jWOFhNhQgFeKGPN3x5UD5cjDYTLCCnUTHpN lVAYVhcbPUms8wPFUeTiyc8S7FbUFD0fZ9ytMKl61FCH51mfU852CVLp2rswLJHeUts+ e99Q== MIME-Version: 1.0 X-Received: by 10.140.94.151 with SMTP id g23mr8635373qge.6.1411869248887; Sat, 27 Sep 2014 18:54:08 -0700 (PDT) Received: by 10.140.41.231 with HTTP; Sat, 27 Sep 2014 18:54:08 -0700 (PDT) Date: Sun, 28 Sep 2014 09:54:08 +0800 Message-ID: Subject: Is there any way to truncate the hbase table but keep all the regions From: Weichen YE To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a113abbae0ca1be0504166dba X-Virus-Checked: Checked by ClamAV on apache.org --001a113abbae0ca1be0504166dba Content-Type: text/plain; charset=UTF-8 Hello all, I just want to delete all the data in the table, but keep the schema and all regions. If I use Delete API to do this, it seem too slow. If I use Truncate, the new table has only one regions and I need to do the pre-splitting every time once again. Is there any feature like "clean/clear" which can help me delete all rows in the table , with a speed like "truncate", but keep all the regions of the table? --001a113abbae0ca1be0504166dba--