[ 
https://issues.apache.org/jira/browse/HBASE-8642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14599398#comment-14599398
 ] 

Ashish Singhi commented on HBASE-8642:
--------------------------------------

Added two commands {{list_table_snapshots}} and {{delete_table_snapshots}} 
which takes table name and snapshot name. For shell command snapshot name is 
optional, if it is not passed then all the snapshots matching the table name 
regex will be listed (and eligible for delete if executing 
delete_table_snapshots command).
bq. A user wants to delete all the snapshots which were taken in January month 
for a table 't' where snapshot names starts with 'Jan'.
This can be done now by executing below command
{code}hbase(main):028:0> delete_table_snapshots 't', 'Jan.*'{code}
Verified shell commands manually everything seems ok.

Will move this jira to Patch Available state once Hadoop QA for master branch 
becomes ok.

Please review.

> [Snapshot] List and delete snapshot by table
> --------------------------------------------
>
>                 Key: HBASE-8642
>                 URL: https://issues.apache.org/jira/browse/HBASE-8642
>             Project: HBase
>          Issue Type: Improvement
>          Components: snapshots
>    Affects Versions: 0.98.0, 0.95.0, 0.95.1, 0.95.2
>            Reporter: Julian Zhou
>            Assignee: Ashish Singhi
>             Fix For: 2.0.0
>
>         Attachments: 8642-trunk-0.95-v0.patch, 8642-trunk-0.95-v1.patch, 
> 8642-trunk-0.95-v2.patch, HBASE-8642.patch
>
>
> Support list and delete snapshots by table names.
> User scenario:
> A user wants to delete all the snapshots which were taken in January month 
> for a table 't' where snapshot names starts with 'Jan'.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to