Re: Exception during batch of put problem

2011-12-20 Thread Vamshi Krishna
Hey thank you Akhtar, i did almost the same just after i mailed the problem in mailing-list. Thank you for ur reply. But i did a little different mistake, i.e i didn't clear the batch, thats why its always kept on giving error, i just added batch.clear(); my problem got solved. On Tue, Dec 20,

Re: Exception during batch of put problem

2011-12-20 Thread Akhtar Muhammad Din
Krishna, You should set auto flush to false to enable batch mode of operation and exception is being thrown because batch and results are not of the same size. Initialize results like this Object[] results = new Object[batch.size()]; and then pass it to table.batch(batch, results); I hope that he

Exception during batch of put problem

2011-12-19 Thread Vamshi Krishna
Hi all, i am trying to copy rows from multiple tables to one table, selecting rows by some criteria. i am using batch of puts in to table i.e for every period=100 rows(each row is of maximum 12 bytes), i am executing ... ... table.setAutoFlush(true);