hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manjeet Singh <manjeet.chand...@gmail.com>
Subject Re: How can I achieve HBase row level atomicity?
Date Thu, 03 Nov 2016 17:57:07 GMT
Hi Ted,

code not required for this case and how MVCC can help?

question is if I have record which come in hbase and from some api its
going for update (means get is performed)
now other operation also performed get operation both update on same rwokey
at end we will not have correct value.

in seprate mail thread i asked same type of question regarding rowkey lock,
but still i did't get correct anser

Thanks
Manjeet

On Wed, Nov 2, 2016 at 11:36 PM, Ted Yu <yuzhihong@gmail.com> wrote:

> Were you including code in the image (which didn't come through) ?
>
> MultiVersionConcurrencyControl is involved in answering your question.
>
> See http://hbase.apache.org/book.html#hregion.scans
>
> Cheers
>
> On Wed, Nov 2, 2016 at 10:57 AM, Manjeet Singh <manjeet.chandhok@gmail.com
> >
> wrote:
>
> > Hi All
> >
> > I have ETL process for inserting data into hbase for this I have spark
> > jobs which are responsible for reading data from kafka topics. so my
> > question is if I have some rowkey already exist in hbase and I have 3
> spark
> > job running and they all try to update on same rowkey how hbase deal for
> > atomicity?
> >
> > for more understanding i have 3 rowkey coming from 3 seprate spark job
> and
> > all trying to update same rowkey which is already exist in hbase table.
> >
> > [image: Inline image 1]
> >
> > --
> > luv all
> >
>



-- 
luv all

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