You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by 覃璐 <lu...@gmail.com> on 2015/01/12 11:01:47 UTC

回复:how can i optimize scan speed when use batch scan ?

i look the trace log


why it receive 0 result and spend so long?


原始邮件
发件人:覃璐luq.java@gmail.com
收件人:useruser@accumulo.apache.org
发送时间:2015年1月12日(周一) 17:05
主题:how can i optimize scan speed when use batch scan ?


hi all.


now i have code like this:


ListRange rangeList=…..;
BatchScanner bs=conn.createBatchScanner();
bs.setRanges(rangeList);




the rangeList has many ranges about 1000,and every range has a random row id when i use Range.exact(new Text(…)),
but the speed is so slowly,it maybe spend 2-3s,how can i optimize it ?


thanks

Re: 回复:how can i optimize scan speed when use batch scan ?

Posted by Josh Elser <jo...@gmail.com>.
FYI, images don't (typically) come across on the mailing list. Use some 
external hosting and provide the link if it's important, please.

How many tabletservers do you have? What version of Accumulo are you 
running? Can you share the output of `config -t your_table_name`?

Thanks.

覃璐 wrote:
> i look the trace log
>
>
> why it receive 0 result and spend so long?
>
>
> 原始邮件
> *发件人:* 覃璐<lu...@gmail.com>
> *收件人:* user<us...@accumulo.apache.org>
> *发送时间:* 2015年1月12日(周一) 17:05
> *主题:* how can i optimize scan speed when use batch scan ?
>
> hi all.
>
> now i have code like this:
>
> List<Range> rangeList=…..;
> BatchScanner bs=conn.createBatchScanner();
> bs.setRanges(rangeList);
>
>
> the rangeList has many ranges about 1000,and every range has a random
> row id when i use Range.exact(new Text(…)),
> but the speed is so slowly,it maybe spend 2-3s,how can i optimize it ?
>
> thanks