Re: Avoiding duplicate writes

2018-01-11 Thread Ted Yu
Peter: Normally java.lang.System.nanoTime() is used for measuring duration of time. See also https://www.javacodegeeks.com/2012/02/what-is-behind-systemnanotime.html bq. the prePut co-processor is executed inside a record lock The prePut hook is called with read lock on the underlying region.

Re: Avoiding duplicate writes

2018-01-11 Thread Lalit Jadhav
Hello Peter, You can add a Random number in Row key for avoiding Rowkey overriding. Even though timeStamp at one ms is same Random Number provides uniqueness. On Thu, Jan 11, 2018 at 3:46 PM, Peter Marron wrote: > Hi, > > We have a problem when we are writing lots of records to HBase. > We

Avoiding duplicate writes

2018-01-11 Thread Peter Marron
Hi, We have a problem when we are writing lots of records to HBase. We are not specifying timestamps explicitly and so the situation arises where multiple records are being written in the same millisecond. Unfortunately when the records are written and the timestamps are the same then later writ