Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E8D5C538 for ; Thu, 27 Jun 2013 13:06:40 +0000 (UTC) Received: (qmail 49498 invoked by uid 500); 27 Jun 2013 13:06:39 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 49437 invoked by uid 500); 27 Jun 2013 13:06:38 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 49429 invoked by uid 99); 27 Jun 2013 13:06:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jun 2013 13:06:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.212.41] (HELO mail-vb0-f41.google.com) (209.85.212.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jun 2013 13:06:31 +0000 Received: by mail-vb0-f41.google.com with SMTP id p13so601745vbe.28 for ; Thu, 27 Jun 2013 06:05:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=Bfn+0t323O1RdJlP9PiH1gF98buGgiptT88+WVp0u6w=; b=JJLqQaXcZR/Cao0ZdPrSGB7wBumpeFDUHOkAK+YIulOJTnv08nJ97yNI9aXwH6Rzj6 Sbw2inWhhV8FVvf+9JvGJJK/3EQUOFthjMIWOkIYrbEBlXeqXQq3XCFq+SmEEMNOxgWT 2Whd4POoei/HDH7D1+Q6omxjALijBGC5i4ckGoo7gNKhn5HdGoaX9BaywQEuzAfKV08s SuQ9R7HkdiuSdAAd/EBbJxyL+6zGorx4t9OGxujWfhaXIfp/L9+VRts9pR5JB/euCcBP /1LUlBrAQrqsFverdwCG+8zdRcdWAiPzxL2lCLu9fs1RtmJ0Fta6nNSAgk8ROrq4EFDI eJIQ== MIME-Version: 1.0 X-Received: by 10.220.203.197 with SMTP id fj5mr3503941vcb.60.1372338350082; Thu, 27 Jun 2013 06:05:50 -0700 (PDT) Received: by 10.221.23.8 with HTTP; Thu, 27 Jun 2013 06:05:49 -0700 (PDT) In-Reply-To: References: Date: Thu, 27 Jun 2013 09:05:49 -0400 Message-ID: Subject: Re: Timing out on connection From: Keith Turner To: user@accumulo.apache.org Content-Type: multipart/alternative; boundary=001a11c191aade6fd704e0226b64 X-Gm-Message-State: ALoCoQnDIckmnKCCEYCIgV3k3wk+1AIgIzHf0trGsKmakXrE+/Yrt1oJbxi5NCyU48L2o7iISrID X-Virus-Checked: Checked by ClamAV on apache.org --001a11c191aade6fd704e0226b64 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jun 27, 2013 at 8:45 AM, 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 > --001a11c191aade6fd704e0226b64 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Thu, Jun 27, 2013 at 8:45 AM, <stbill79@gmail.com> wrote:
When connecting to Accumulo= in Java, I'll often get:

There are no tablet ser= vers: check that zookeeper and accumulo are running.

The status is understood - usually my serv= er is down. The problem is that my code will wait forever, without eventual= ly 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 (AC= CUMULO-705 and ACCUMULO-706). =A0The Scanner has had a timeout for a while.= =A0However this may not be sufficient, your code may be getting hung up be= fore trying to read or write. =A0There is a ticket for client wide timeout = settings ACCUMULO-1286.
=A0

Thanks
Bill

--001a11c191aade6fd704e0226b64--