You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by ch huang <ju...@gmail.com> on 2014/06/16 09:21:27 UTC

what different between delete and deleteall in hbase shell?

hi,maillist:

any difference between the following two command in hbase shell?
     *deleteall ‘t1′, ‘r1′, ‘c1′, ts1  *
*     delete ‘t1′, ‘r1′, ‘c1′, ts1*

Re: what different between delete and deleteall in hbase shell?

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
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.

JM


2014-06-16 4:07 GMT-04:00 Ted Yu <yu...@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 <ju...@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*
>

Re: what different between delete and deleteall in hbase shell?

Posted by Ted Yu <yu...@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 <ju...@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*