hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanel Zukan <san...@gmail.com>
Subject Re: Delete whole table HBase
Date Sun, 05 Jun 2011 12:19:32 GMT
Hi,

deleteTable() from HBaseAdmin would do the job. Take look at:
http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HBaseAdmin.html#deleteTable%28byte[]%29

Maybe you want to call disableTable() before doing table delete too ;)

Regards,
sanel

On Sat, Jun 4, 2011 at 12:36 PM, Azshara <andap2002@gmail.com> wrote:
> Hello all,
>
> I have a quick question: Isn't there a method to delete a whole table in the
> HBase client? As I can see, a Delete object is only able to delete rows,
> families or columns:
>
> Delete(byte[] row)
>          Create a Delete operation for the specified row.
> Delete(byte[] row, long timestamp, RowLock rowLock)
>          Create a Delete operation for the specified row and timestamp, using
> an optional row lock.
>
> This is from the 0.91.0 API.
>
> I need to delete a table. How do I do that?
>
> Thanks.
>
>

Mime
View raw message