hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chen Wang <chen.apache.s...@gmail.com>
Subject Re: argument results must be the same size as argument list
Date Wed, 16 Jul 2014 21:39:30 GMT
found out the issue..
I am using storm to pass down array in the bolt, and the array is not
threadsafe..
Chen


On Wed, Jul 16, 2014 at 12:03 PM, Chen Wang <chen.apache.solr@gmail.com>
wrote:

> Hi folks,
> I am calling batch get
>
> Object[] result = new Object[getList.size()];
>
> mytab.batch(getList,result);
>
> where getList is a list of Get with row key,CF, and CQ
>
> and it throws exception:
>
> java.lang.IllegalArgumentException: argument results must be the same size
> as argument list
>
> at
> org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.processBatch(HConnectionManager.java:1415)
>
> at org.apache.hadoop.hbase.client.HTable.batch(HTable.java:702)
>
> at org.apache.hadoop.hbase.client.HTable.get(HTable.java:671)
>
> I assume its because some row keys do not exist in the table. In this
> case, how can I get existing rows back?
>
> Thanks,
>
> Chen
>

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