hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yi Liang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16381) Shell deleteall command should support row key prefixes
Date Fri, 09 Sep 2016 17:35:20 GMT

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

Yi Liang commented on HBASE-16381:

yes, agree with Jerry. You can see from below code, the delete also use deleteall's implementation,
there maybe some reason why two similar delete commands could exist.  
    # Delete a cell
    def _delete_internal(row, column,
    			timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP, args = {})
      _deleteall_internal(row, column, timestamp, args)

I provide a patch that extend deleteall to support row prefix.
the usage is also below, 
  hbase> deleteall 't1', {ROWPREFIXFILTER => 'prefix'}
  hbase> deleteall 't1', {ROWPREFIXFILTER => 'prefix'}, 'c1'        //delete certain
cf in the row ranges
  hbase> deleteall 't1', {ROWPREFIXFILTER => 'prefix'}, 'c1', ts1
  hbase> deleteall 't1', {ROWPREFIXFILTER => 'prefix'}, 'c1', ts1, {VISIBILITY=>'PRIVATE|SECRET'}

> Shell deleteall command should support row key prefixes
> -------------------------------------------------------
>                 Key: HBASE-16381
>                 URL: https://issues.apache.org/jira/browse/HBASE-16381
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>            Reporter: Andrew Purtell
>            Assignee: Yi Liang
>            Priority: Minor
>             Fix For: 2.0.0
>         Attachments: HBASE-16381-V1.patch, HBASE-16381-V2.patch, HBASE-16381-V3.patch
> The shell's deleteall command should support deleting a row range using a row key prefix.

This message was sent by Atlassian JIRA

View raw message