You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ricky Saltzer (JIRA)" <ji...@apache.org> on 2012/10/10 23:45:03 UTC

[jira] [Commented] (HBASE-6972) HBase Shell deleteall requires column to be defined

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

Ricky Saltzer commented on HBASE-6972:
--------------------------------------

Here's a sample of the issue...

*Intention*: Delete entire row
---
*Table*: test
*Row*: row2

{noformat}
hbase(main):008:0> deleteall 'test', 'row2'

ERROR: wrong number of arguments (2 for 3)

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 't1', 'r1'
  hbase> deleteall 't1', 'r1', 'c1'
  hbase> deleteall 't1', 'r1', 'c1', ts1

The same commands also can be run on a table reference. Suppose you had a reference
t to table 't1', the corresponding command would be:

  hbase> t.deleteall 'r1'
  hbase> t.deleteall 'r1', 'c1'
  hbase> t.deleteall 'r1', 'c1', ts1
{noformat}
                
> HBase Shell deleteall requires column to be defined 
> ----------------------------------------------------
>
>                 Key: HBASE-6972
>                 URL: https://issues.apache.org/jira/browse/HBASE-6972
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>            Reporter: Ricky Saltzer
>
> It appears that the shell does not allow users to delete a row without specifying a column (deleteall). It looks like the deleteall.rb used to pre-define column as nil, making it optional. 
> I've created a patch and confirmed it to be working in standalone mode, I will upload it shortly. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira