[
https://issues.apache.org/jira/browse/HBASE-16381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15472742#comment-15472742
]
Jerry He commented on HBASE-16381:
----------------------------------
{noformat}
hbase(main):002:0> deleteall
ERROR: wrong number of arguments (0 for 2)
Here is some help for this command:
Delete all cells in a given row; pass a table name, row, and optionally
a column and timestamp. Examples:
hbase> deleteall 'ns1:t1', 'r1'
hbase> deleteall 't1', 'r1'
hbase> deleteall 't1', 'r1', 'c1'
hbase> deleteall 't1', 'r1', 'c1', ts1
hbase> deleteall 't1', 'r1', 'c1', ts1, {VISIBILITY=>'PRIVATE|SECRET'}
{noformat}
{noformat}
hbase(main):003:0> delete
ERROR: wrong number of arguments (0 for 3)
Here is some help for this command:
Put a delete cell value at specified table/row/column and optionally
timestamp coordinates. Deletes must match the deleted cell's
coordinates exactly. When scanning, a delete cell suppresses older
versions. To delete a cell from 't1' at row 'r1' under column 'c1'
marked with the time 'ts1', do:
hbase> delete 'ns1:t1', 'r1', 'c1', ts1
hbase> delete 't1', 'r1', 'c1', ts1
hbase> delete 't1', 'r1', 'c1', ts1, {VISIBILITY=>'PRIVATE|SECRET'}
{noformat}
You can see the deleteall and delete are quite similar. I guess the column and
ts are optional in deleteall, but required in delete. We probably can combine
these two. (There is probably some Ruby limitation for differentiating the
parameters. That is why we have two commands.)
If we can differentiating the parameters in a backward compatible way (old
command use still works and works the same), it should be ok.
> 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
>
>
> 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)