Use Delete.deleteColumn (cf, q, ts) which will delete this one version only.
deleteColumns will delete all versions under the ts Anoop On Tuesday, July 1, 2014, Ramasubramanian Narayanan < [email protected]> wrote: > 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 < > [email protected]> 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 < >> [email protected]>: >> >> > 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 >> > >> >
