hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Marc Spaggiari <jean-m...@spaggiari.org>
Subject Re: Duplicate Value Inserts in HBase
Date Tue, 21 Oct 2014 13:02:00 GMT
You can do check and puts to validate if value is already there, but it's
slower...

2014-10-21 8:50 GMT-04:00 Krishna Kalyan <krishnakalyan3@gmail.com>:

> Thanks Jean,
> If i put the same value in my table for a particular column for a rowkey i
> want HBase reject this value and retain old value with old time stamp.
> In other words update only when value changes.
>
> Regards,
> Krishna
>
> On Tue, Oct 21, 2014 at 6:02 PM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
> > Hi Krishna,
> >
> > HBase will store them in the same row, same cell but you will have 2
> > versions. If you want to keep just one, setup the version=1 on the table
> > side and only one will be stored. Is that what yo mean?
> >
> > JM
> >
> > 2014-10-21 8:29 GMT-04:00 Krishna Kalyan <krishnakalyan3@gmail.com>:
> >
> > > Hi,
> > > I have a HBase table which is populated from pig using PigStorage.
> > > While inserting, suppose for rowkey i have a duplicate value.
> > > Is there a way to prevent an update?.
> > > I want to maintain the version history for my values which are unique.
> > >
> > > Regards,
> > > Krishna
> > >
> >
>

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