You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Yi Liang (JIRA)" <ji...@apache.org> on 2016/08/23 18:41:21 UTC

[jira] [Comment Edited] (HBASE-16381) Shell deleteall command should support row key prefixes

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

Yi Liang edited comment on HBASE-16381 at 8/23/16 6:41 PM:
-----------------------------------------------------------

Hi [~apurtell],
   I have attached a patch, which I add a new command called 'deleterows', the usage is as below:
{code}
  hbase> deleterows 'ns1:t1', 'prefix'                 
  hbase> deleterows 't1', 'prefix'                         // delete all cells for specific rows
  hbase> deleterows 't1', 'prefix', 'c1'                 // delete specific columns for specific rows
  hbase> deleterows 't1', 'prefix', 'c1', ts1          // delete specific columns for specific rows before ts1
  hbase> deleterows 't1', 'prefix', 'c1', {VISIBILITY=>'PRIVATE|SECRET'}  
  hbase> deleterows 't1', 'prefix', 'c1', ts1, {VISIBILITY=>'PRIVATE|SECRET'}  //above two considering cell visibility
{code}



was (Author: easyliangjob):
Hi [~apurtell],
   I have attached a patch, which I add a new command called 'deleterows', the usage is as below:
<code>
  hbase> deleterows 'ns1:t1', 'prefix'                 
  hbase> deleterows 't1', 'prefix'                         // delete all cells for specific rows
  hbase> deleterows 't1', 'prefix', 'c1'                 // delete specific columns for specific rows
  hbase> deleterows 't1', 'prefix', 'c1', ts1          // delete specific columns for specific rows before ts1
  hbase> deleterows 't1', 'prefix', 'c1', {VISIBILITY=>'PRIVATE|SECRET'}  
  hbase> deleterows 't1', 'prefix', 'c1', ts1, {VISIBILITY=>'PRIVATE|SECRET'}  //above two considering cell visibility
</code>


> 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
>
>
> The shell's deleteall command should support deleting a row range using a row key prefix. 



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