Hi,

I would like to use nice feature of HBase --versions to store a timeseries
data for a rowkey.
However, I get duplicates for the same rowkey and the same timestamp if I
use Put and run mapreduce job multiple times.

For example.
Put put = new Put(rowkey.getBytes());
put.add("f1:c1".getBytes(), ts, value.getBytes());

I use TableOutputFormat as the output of the MapReduce job.
If I run the MapReduce job twice, I would get 2 records with the same rowkey
and same timestamp.

May I ask whether the Put just adds a row no matter that there is already a
row with the same key and timestamp in the table?

Best,
zhenyu

Reply via email to