You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by st...@gmail.com on 2013/06/27 14:45:59 UTC

Timing out on connection

When connecting to Accumulo in Java, I'll often get:

*There are no tablet servers: check that zookeeper and accumulo are running.
*
*
*
The status is understood - usually my server is down. The problem is that
my code will wait forever, without eventually tossing an exception.

Is there anyway to set a timeout parameter or force the method to
conditionally connect?

Thanks
Bill

Re: Timing out on connection

Posted by Keith Turner <ke...@deenlo.com>.
On Thu, Jun 27, 2013 at 8:45 AM, <st...@gmail.com> wrote:

> When connecting to Accumulo in Java, I'll often get:
>
> *There are no tablet servers: check that zookeeper and accumulo are
> running.*
> *
> *
> The status is understood - usually my server is down. The problem is that
> my code will wait forever, without eventually tossing an exception.
>
> Is there anyway to set a timeout parameter or force the method to
> conditionally connect?
>

In 1.5 timeouts were added to the BatchWriter and BatchScanner
(ACCUMULO-705 and ACCUMULO-706).  The Scanner has had a timeout for a
while.  However this may not be sufficient, your code may be getting hung
up before trying to read or write.  There is a ticket for client wide
timeout settings ACCUMULO-1286.


>
> Thanks
> Bill
>

Re: Timing out on connection

Posted by st...@gmail.com.
thanks keith. I see a lot of nice features in 1.5, but unfortunately we're
stuck on 1.4.x for the time being. Appreciate your help.


On Thu, Jun 27, 2013 at 9:06 AM, Keith Turner <ke...@deenlo.com> wrote:

> Wrong ticket in prev email.  it 1268, not 1286.
>
>
> On Thu, Jun 27, 2013 at 8:45 AM, <st...@gmail.com> wrote:
>
>> When connecting to Accumulo in Java, I'll often get:
>>
>> *There are no tablet servers: check that zookeeper and accumulo are
>> running.*
>> *
>> *
>> The status is understood - usually my server is down. The problem is that
>> my code will wait forever, without eventually tossing an exception.
>>
>> Is there anyway to set a timeout parameter or force the method to
>> conditionally connect?
>>
>> Thanks
>> Bill
>>
>
>

Re: Timing out on connection

Posted by Keith Turner <ke...@deenlo.com>.
Wrong ticket in prev email.  it 1268, not 1286.


On Thu, Jun 27, 2013 at 8:45 AM, <st...@gmail.com> wrote:

> When connecting to Accumulo in Java, I'll often get:
>
> *There are no tablet servers: check that zookeeper and accumulo are
> running.*
> *
> *
> The status is understood - usually my server is down. The problem is that
> my code will wait forever, without eventually tossing an exception.
>
> Is there anyway to set a timeout parameter or force the method to
> conditionally connect?
>
> Thanks
> Bill
>