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: Is it possible to delete a particular version values in a Hbase table?
Date Mon, 30 Jun 2014 14:21:18 GMT
Hi Ram,

Have you tried to issue a Delete with a specific timestamp?


*deleteColumn
<https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Delete.html#deleteColumn%28byte[],%20byte[],%20long%29>*(byte[]
family,
byte[] qualifier, long timestamp)
Delete the specified version of the specified column.


JM


2014-06-30 10:18 GMT-04:00 Ramasubramanian Narayanan <
ramasubramanian.narayanan@gmail.com>:

> Hi,
>
> Is it possible to delete a particular version values in a Hbase table?
>
> for example,
>
> hbase(main):050:0* scan 'test1',{VERSIONS=>3}
> ROW                   COLUMN+CELL
>  1                    column=f1:id, timestamp=1404138357648, value=Rams
>  1                    column=f1:name, timestamp=1404138357705, value=Jack
>  1                    column=f1:name, timestamp=1404138357693, value=Queen
>  1                    column=f1:name, timestamp=1404138357680, value=King
>
>
> If I want to delete the 2nd version alone, then how to do that? It should
> not delete the other 2 versions of that column.
>
>
> regards,
> Rams
>

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