AnsweredAssumed Answered

Row locking while reading from MapRDB (HBase)

Question asked by mahdi62b on Dec 7, 2016
Latest reply on Dec 9, 2016 by cmcdonald
Branched to a new discussion

Hi,

 

I am a  developing a spark streaming application dealing with HBase as states of my application.

 

My user-case need to read from row key,however due to the nature of parallelism of the application..I need to lock the row while I update that..so for a unique row key..when I get the row (using Get object)..it should not let other thread executor  to read that row-key again until I update the key.This is make me assured my application process the last and valid row ,with updated values.

 

I actually need locks on my HBase Reads for a particular row key while entering a piece of function.

 

Can I implement this in  MaprDB and how?

Outcomes