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
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
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
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
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
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
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,
>
>
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