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] [Comment Edited] (HBASE-16381) Shell deleteall command should support row key prefixes
Date Tue, 23 Aug 2016 18:41:21 GMT

    [ 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)

Mime
View raw message