Re: counter Increment gives DonotRetryException

2013-08-29 Thread Ted Yu
The exception came from HRegion#increment():

if(kv.getValueLength() == Bytes.SIZEOF_LONG) {

  amount += Bytes.toLong(kv.getBuffer(),
kv.getValueOffset(), Bytes.SIZEOF_LONG);

} else {

  // throw DoNotRetryIOException instead of
IllegalArgumentException

  throw new org.apache.hadoop.hbase.DoNotRetryIOException(

  Attempted to increment field that isn't 64 bits wide
);

}

Can you check the values in 'columnar:column1' ?


On Thu, Aug 29, 2013 at 4:42 AM, yeshwanth kumar yeshwant...@gmail.comwrote:

 i am newbie to Hbase,
 going through Counters topic,
 whenever i perform increment like

 incr 't1','9row27','columnar:column1',1

 it gives an

 ERROR: org.apache.hadoop.hbase.DoNotRetryIOException:
 org.apache.hadoop.hbase.DoNotRetryIOException: Attempted to increment field
 that isn't 64 bits wide

 looking for some help



Re: counter Increment gives DonotRetryException

2013-08-29 Thread Jean-Daniel Cryans
You probably put a string in there that was a number, and increment expects
a 8 bytes long. For example, if you did:

put 't1', '9row27', 'columnar:column1', '1'

Then did an increment on that, it would fail.

J-D


On Thu, Aug 29, 2013 at 4:42 AM, yeshwanth kumar yeshwant...@gmail.comwrote:

 i am newbie to Hbase,
 going through Counters topic,
 whenever i perform increment like

 incr 't1','9row27','columnar:column1',1

 it gives an

 ERROR: org.apache.hadoop.hbase.DoNotRetryIOException:
 org.apache.hadoop.hbase.DoNotRetryIOException: Attempted to increment field
 that isn't 64 bits wide

 looking for some help