hbase-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/HBASE-2005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Doug Meil resolved HBASE-2005.

    Resolution: Not A Problem

A version of the functionality requested was already in the shell.

> '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.

View raw message