hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohamed Ibrahim <mibra...@mibrahim.net>
Subject Re: Overwrite a row
Date Fri, 19 Apr 2013 18:11:23 GMT
Hello Kristoffer,

HBase row mutations are atomic ( http://hbase.apache.org/acid-semantics.html ),
which include put . So when you overwrite a row it is not possible for
another processes to read half old / half new data. They will either read
all old or all new data if the put succeeds. It is also not possible for
put to fail in the middle leaving a partly modified row.


On Fri, Apr 19, 2013 at 1:53 PM, Kristoffer Sjögren <stoffe@gmail.com>wrote:

> Hi
> Is it possible to completely overwrite/replace a row in a single _atomic_
> action? Already existing columns and qualifiers should be removed if they
> do not exist in the data inserted into the row.
> The only way to do this is to first delete the row then insert new data in
> its place, correct? Or is there an operation to do this?
> Cheers,
> -Kristoffer

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