Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> Overwrite a row


+
Kristoffer Sjögren 2013-04-19, 17:53
+
Ted Yu 2013-04-19, 18:32
+
Kristoffer Sjögren 2013-04-19, 19:44
+
Ted Yu 2013-04-19, 21:21
Copy link to this message
-
Re: Overwrite a row
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.

Best,
Mohamed
On Fri, Apr 19, 2013 at 1:53 PM, Kristoffer Sjögren <[EMAIL PROTECTED]>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
>
+
Mohamed Ibrahim 2013-04-19, 20:35
+
Mohamed Ibrahim 2013-04-19, 20:41
+
Ted Yu 2013-04-20, 02:47
+
Kristoffer Sjögren 2013-04-20, 07:17
+
Ted Yu 2013-04-20, 12:42
+
Kristoffer Sjögren 2013-04-20, 17:11
+
Ted Yu 2013-04-21, 00:25
+
Anoop John 2013-04-21, 07:39
+
Kristoffer Sjögren 2013-04-22, 18:59