-Re: what different between delete and deleteall in hbase shell?
Jean-Marc Spaggiari 2014-06-16, 12:02
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 <[EMAIL PROTECTED]>: