Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D9291032A for ; Tue, 4 Nov 2014 13:48:34 +0000 (UTC) Received: (qmail 90828 invoked by uid 500); 4 Nov 2014 13:48:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 90770 invoked by uid 500); 4 Nov 2014 13:48:34 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 90758 invoked by uid 99); 4 Nov 2014 13:48:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2014 13:48:34 +0000 Date: Tue, 4 Nov 2014 13:48:34 +0000 (UTC) From: "Ashish Singhi (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-8572) Enhance delete_snapshot.rb to call snapshot deletion API with regex MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-8572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14196105#comment-14196105 ] Ashish Singhi commented on HBASE-8572: -------------------------------------- Checked following things with the patch, 1. Usage {noformat} hbase(main):004:0> delete_snapshot ERROR: wrong number of arguments (0 for 1) Here is some help for this command: Delete all of snapshots matching the given regex. Examples: hbase> delete_snapshot 'snapshotName' hbase> delete_snapshot 's.*' {noformat} 2. list_snapshots {noformat} hbase(main):006:0> list_snapshots SNAPSHOT TABLE + CREATION TIME j t (Tue Nov 04 18:29:14 +0530 2014) k t (Tue Nov 04 18:29:02 +0530 2014) k1 t (Tue Nov 04 18:29:06 +0530 2014) 3 row(s) in 0.0620 seconds => ["j", "k", "k1"] {noformat} 3. delete_snapshot 'k.*' with 'n' {noformat} hbase(main):007:0> delete_snapshot 'k.*' k k1 Delete the above 2 snapshots (y/n)? n hbase(main):008:0> list_snapshots SNAPSHOT TABLE + CREATION TIME j t (Tue Nov 04 18:29:14 +0530 2014) k t (Tue Nov 04 18:29:02 +0530 2014) k1 t (Tue Nov 04 18:29:06 +0530 2014) 3 row(s) in 0.0330 seconds => ["j", "k", "k1"] {noformat} 4. delete_snapshot 'k.*' with 'y' {noformat} hbase(main):009:0> delete_snapshot 'k.*' k k1 Delete the above 2 snapshots (y/n)? y 0 row(s) in 0.0970 seconds hbase(main):010:0> list_snapshots SNAPSHOT TABLE + CREATION TIME j t (Tue Nov 04 18:29:14 +0530 2014) 1 row(s) in 0.0180 seconds => ["j"] {noformat} 5. delete_snapshot 'j' {noformat} hbase(main):011:0> delete_snapshot 'j' j Delete the above 1 snapshots (y/n)? y 0 row(s) in 0.0360 seconds hbase(main):012:0> list_snapshots SNAPSHOT TABLE + CREATION TIME 0 row(s) in 0.0060 seconds => [] {noformat} If anything else needs to be checked, Please let me know. > Enhance delete_snapshot.rb to call snapshot deletion API with regex > ------------------------------------------------------------------- > > Key: HBASE-8572 > URL: https://issues.apache.org/jira/browse/HBASE-8572 > Project: HBase > Issue Type: Improvement > Reporter: Ted Yu > Assignee: Ashish Singhi > Attachments: HBASE-8572.patch > > > HBASE-8461 added the API to HBaseAdmin which allows user to specify regular expression for deleting snapshots. > This JIRA would allow delete_snapshot.rb to utilize this functionality. -- This message was sent by Atlassian JIRA (v6.3.4#6332)