hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars George (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-2005) 'Shell' suggestion - equivalent of 'truncate' for a table
Date Mon, 23 Nov 2009 19:29:39 GMT

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

Lars George commented on HBASE-2005:
------------------------------------

Hi Doug,

There is 

{code}
 truncate  Disables, drops and recreates the specified table.
{code}

which is not as elaborate as yours, so we could keep this issue here to extend the truncate
functionality. But there is at least something.

> 'Shell' suggestion - equivalent of 'truncate' for a table
> ---------------------------------------------------------
>
>                 Key: HBASE-2005
>                 URL: https://issues.apache.org/jira/browse/HBASE-2005
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.1
>            Reporter: Doug Meil
>            Priority: Minor
>
> The hbase shell has 'delete' and 'deleteall' for deleting a cell/cells for a given row.
> I don't see any equivalent of the RDBMS equivalent of 'truncate' that would delete all
the rows in a table, however (i.e., based on my understanding of the shell, 'deleteall' applies
horizontally, but not vertically).
> At the very least, this could be useful for development purposes when you want to quickly
remove test data from a table.  
> Nice to have - something like:
> truncate mytable    (no column families specified...  so it removes all the rows from
every column family)
> truncate mytable family1    (remove all rows from table 'mytable' but only for column
family 'family1').
> Something like that...  just a suggestion.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message