Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-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 E7674183F5 for ; Tue, 16 Jun 2015 13:59:37 +0000 (UTC) Received: (qmail 65669 invoked by uid 500); 16 Jun 2015 13:59:35 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 65600 invoked by uid 500); 16 Jun 2015 13:59:35 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 65589 invoked by uid 99); 16 Jun 2015 13:59:35 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2015 13:59:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id ED75FCE341 for ; Tue, 16 Jun 2015 13:59:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.669 X-Spam-Level: X-Spam-Status: No, score=-0.669 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.648, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id taxwQqWcuVKk for ; Tue, 16 Jun 2015 13:59:34 +0000 (UTC) Received: from BLU004-OMC2S25.hotmail.com (blu004-omc2s25.hotmail.com [65.55.111.100]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 94E1E201C2 for ; Tue, 16 Jun 2015 13:59:33 +0000 (UTC) Received: from BLU436-SMTP248 ([65.55.111.73]) by BLU004-OMC2S25.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Tue, 16 Jun 2015 06:59:26 -0700 X-TMN: [kdNSivdRelbv1N5LdkbjIH0+JBanuJjI] X-Originating-Email: [michael_segel@hotmail.com] Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: How to make the client fast fail From: Michael Segel In-Reply-To: Date: Tue, 16 Jun 2015 06:59:23 -0700 Content-Transfer-Encoding: quoted-printable References: To: user@hbase.apache.org X-Mailer: Apple Mail (2.2098) X-OriginalArrivalTime: 16 Jun 2015 13:59:25.0447 (UTC) FILETIME=[A7715170:01D0A83C] Be careful for what you wish.=20 You want to fail fast, ok, but when you shorten the HBase timers, you = can run in to other problems.=20 The simplest solution is to use a timer / timeout thread in your = application.=20 You want to do it this way because you are asking for an application = specific solution while HBase is a shared resource.=20 Failing fast and failing often is no way to run an HBase/Hadoop cluster. = ;-)=20 > On Jun 14, 2015, at 10:03 PM, PRANEESH KUMAR = wrote: >=20 > Hi Michael, >=20 > We can have a monitoring thread and interrupt the hbase client thread > after time out instead of doing this I want the timeout or some = exception > to be thrown from the HBase client itself. >=20 > On Thu, Jun 11, 2015 at 5:16 AM, Michael Segel = > wrote: >=20 >> threads? >>=20 >> So that regardless of your hadoop settings, if you want something = faster, >> you can use one thread for a timer and then the request is in = another. So >> if you hit your timeout before you get a response, you can stop your = thread. >> (YMMV depending on side effects=E2=80=A6 ) >>=20 >>> On Jun 10, 2015, at 12:55 AM, PRANEESH KUMAR = >> wrote: >>>=20 >>> Hi, >>>=20 >>> I have got the Connection object with default configuration, if the >>> zookeeper or HMaster or Region server is down, the client didn't = fast >> fail >>> and it took almost 20 mins to thrown an error. >>>=20 >>> What is the best configuration to make the client fast fail. >>>=20 >>> Also what is significance of changing the following parameters. >>>=20 >>> hbase.client.retries.number >>> zookeeper.recovery.retry >>> zookeeper.session.timeout >>> zookeeper.recovery.retry.intervalmill >>> hbase.rpc.timeout >>>=20 >>> Regards, >>> Praneesh >>=20 >>=20