hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Marc Spaggiari <jean-m...@spaggiari.org>
Subject Re: what different between delete and deleteall in hbase shell?
Date Mon, 16 Jun 2014 11:53:04 GMT
You can also find the same information using you HBase shell:

hbase(main):006:0> help "delete"
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 't1', 'r1', 'c1', ts1
hbase(main):007:0> help "deleteall"
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

Basically, for delete, table name, rowid and columns are mandatory. While
for deleteall, onlly table and rowid are mandatory.


2014-06-16 4:07 GMT-04:00 Ted Yu <yuzhihong@gmail.com>:

> Please take a look at section 3 in:
> http://learnhbase.wordpress.com/2013/03/02/hbase-shell-commands/
> Cheers
> On Jun 16, 2014, at 12:21 AM, ch huang <justlooks@gmail.com> wrote:
> > hi,maillist:
> >
> > any difference between the following two command in hbase shell?
> >     *deleteall ‘t1′, ‘r1′, ‘c1′, ts1  *
> > *     delete ‘t1′, ‘r1′, ‘c1′, ts1*

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message