hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramasubramanian Narayanan <ramasubramanian.naraya...@gmail.com>
Subject Re: Is it possible to delete a particular version values in a Hbase table?
Date Tue, 01 Jul 2014 09:03:19 GMT
Hi JM,

Yes I tried. But it is deleting all the versions which is older than the
time stamp that I give. My use case is to delete that particular version(or
that particular timestamp value).

regards,
Rams


On Mon, Jun 30, 2014 at 7:51 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> 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