Re: java.lang.IllegalArgumentException in incrementColumnValue and Increment

2011-03-29 Thread sulabh choudhury
Yes. I found the same information. On Tue, Mar 29, 2011 at 12:23 PM, Jesse Hutton wrote: > AFAIK, (and maybe some experts can chime in here with some details) there > is no real way to over write a value in hbase. If you want to control the > number of versions, you can set the "max versions" pro

Re: java.lang.IllegalArgumentException in incrementColumnValue and Increment

2011-03-29 Thread Jesse Hutton
AFAIK, (and maybe some experts can chime in here with some details) there is no real way to over write a value in hbase. If you want to control the number of versions, you can set the "max versions" property on the column family, and that will be enforced whenever a major compaction occurs [1]. Je

Re: java.lang.IllegalArgumentException in incrementColumnValue and Increment

2011-03-29 Thread sulabh choudhury
I just realized that using the increment function creates another version, with a new timestamp. Is there a way we can use the previous TS, hence over writing the value ? On Tue, Mar 29, 2011 at 9:38 AM, sulabh choudhury wrote: > Thanks Jesse. Changing the 10 to 10L made it work. > > On Tue, Mar

Re: java.lang.IllegalArgumentException in incrementColumnValue and Increment

2011-03-29 Thread sulabh choudhury
Thanks Jesse. Changing the 10 to 10L made it work. On Tue, Mar 29, 2011 at 8:59 AM, Jesse Hutton wrote: > Hi, > > It looks like the problem is that the initial value you're inserting in the > column is an int, while HTable#incrementColumnValue() expects a long. > Instead of: > > >> I enter data b

Re: java.lang.IllegalArgumentException in incrementColumnValue and Increment

2011-03-29 Thread sulabh choudhury
On Tue, Mar 29, 2011 at 8:56 AM, Stack wrote: > Try > http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HTable.html#increment(org.apache.hadoop.hbase.client.Increment) > instead. It looks like its whats taking over from ICV (and we should > be decrementing ICV). > St.Ack > > I have

Re: java.lang.IllegalArgumentException in incrementColumnValue and Increment

2011-03-29 Thread Jesse Hutton
Hi, It looks like the problem is that the initial value you're inserting in the column is an int, while HTable#incrementColumnValue() expects a long. Instead of: > I enter data by :- > theput.add(Bytes.toBytes("uid"),Bytes.toBytes("1"), 130108782L + t, > Bytes.toBytes(10)) > try: theput.add

Re: java.lang.IllegalArgumentException in incrementColumnValue and Increment

2011-03-29 Thread Stack
Try http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HTable.html#increment(org.apache.hadoop.hbase.client.Increment) instead. It looks like its whats taking over from ICV (and we should be decrementing ICV). St.Ack On Tue, Mar 29, 2011 at 8:22 AM, sulabh choudhury wrote: > Hi, > >

java.lang.IllegalArgumentException in incrementColumnValue and Increment

2011-03-29 Thread sulabh choudhury
Hi, Unable to use the Increment function, can anybody suggest what am I doing wrong... I enter data by :- theput.add(Bytes.toBytes("uid"),Bytes.toBytes("1"), 130108782L + t, Bytes.toBytes(10)) Now when I try to increment the value I have tried... mytable.incrementColumnValue(Bytes.toBytes("r