Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 3BE799CDC for ; Wed, 23 May 2012 04:10:14 +0000 (UTC) Received: (qmail 39928 invoked by uid 500); 23 May 2012 04:10:13 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 39895 invoked by uid 500); 23 May 2012 04:10:13 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 39873 invoked by uid 99); 23 May 2012 04:10:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2012 04:10:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marshall.mcmullen@gmail.com designates 209.85.160.170 as permitted sender) Received: from [209.85.160.170] (HELO mail-gh0-f170.google.com) (209.85.160.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2012 04:09:57 +0000 Received: by ghbg2 with SMTP id g2so1098024ghb.15 for ; Tue, 22 May 2012 21:09:36 -0700 (PDT) Received: by 10.236.116.66 with SMTP id f42mr2993106yhh.70.1337746176425; Tue, 22 May 2012 21:09:36 -0700 (PDT) Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com [209.85.214.170]) by mx.google.com with ESMTPS id s5sm1893000anh.16.2012.05.22.21.09.35 (version=SSLv3 cipher=OTHER); Tue, 22 May 2012 21:09:35 -0700 (PDT) Received: by obbuo13 with SMTP id uo13so1938370obb.15 for ; Tue, 22 May 2012 21:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=XddSFXvFRBBG98rX66LmhRcLJEmlDPB36UWiutUD99o=; b=D7Hhs9FQ0fSJX0xFrEB0eXz/GAZ+W1/KX5Gw6OOp+XAgCOvRHMSEN9towlacHSUZJx eDz6cAbFfkG8E6JHVe4oq41+B9MvRaw32pPDDW21cn2TdE70Q7KU0ishd3AwQXTZzio/ RtHGoUnk+E95EmwAJGBIWXvAmmxxJ3LukbhawCMBpRCB8i4NUl15jV+OD8k+j0gSdsmm 07CG7MrxYt7EX3SbfGTXGBli8dTFi5DPWHC4Onoc6WK9Slz2O+HwF83yX80Tgvxsa4rW zk7Bn1MM3WJyW+DDbJuESLb5zL90VOhMmwBUYSV9piTdwTSghsOPf6njylavLLcN2vCg SatQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=XddSFXvFRBBG98rX66LmhRcLJEmlDPB36UWiutUD99o=; b=Sdt+gcMRXCVCZALry3c2dJjUfqVF4iBQbs9JhKgECCvxVsO1/0msTBTt+trxAnDMYu r3CxeSskcR2fKjb1bFZlUFQSea2vEALEHdHMgd1AE1KuicWdgC1Po0JWD3MMuWk25PUd ym56P6XqWV7X6fblvbj4GafRmah15TP8sERZDaGzn/iNMtakz5HL4JHiaV27/VYvNRhc EghvxvlStYrgKEcnTG+9YvdNMmJbs4sWzX02UpQIf03OIJ2w5/Le7fz8cqx8t55CcTxE PjKUAdMhRX2J7iKZdy9yjOxEbLnaC8tRlXxP10an0H+qQBdpGXfnskMRQeRK8V97W/wP JbJQ== MIME-Version: 1.0 Received: by 10.182.5.132 with SMTP id s4mr24687918obs.65.1337746174751; Tue, 22 May 2012 21:09:34 -0700 (PDT) Received: by 10.182.213.68 with HTTP; Tue, 22 May 2012 21:09:34 -0700 (PDT) X-Originating-IP: [173.164.43.53] In-Reply-To: References: Date: Tue, 22 May 2012 22:09:34 -0600 Message-ID: Subject: Re: fail connect to zookeeper From: Marshall McMullen To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=f46d0447967d8bb2a404c0ac4de4 X-Gm-Message-State: ALoCoQkNqNZpiI9kgVT8BUmjiENyJ8mKOTFtOOk4TzWB+ppHy1nGYSVJdi4fkyN2/e21rqGS0MrY --f46d0447967d8bb2a404c0ac4de4 Content-Type: text/plain; charset=ISO-8859-1 You've specified the same server twice in that list -- zk01:2181 and zk01:2181 again. But to answer your question, yes, ZK C code will try all the servers in the provided list while connecting. On Tue, May 22, 2012 at 10:07 PM, Yosef Arraf wrote: > Hi, > I'm faceing a problem when i'm working with cluster zookeper and one of > the cluser servers is down: > when *zk01:2181 *is down the following code will fail: > > String servers = "*zk01:2181*,*zk01:2181*"; > _zkclient = new ZkClient(servers, 4000, connectionTimeout, new > BytesPushThroughSerializer()); > > it is not as mention > "If establishment of the connection fails, another server in the connect > string will be tried" > > > please help me to find out how to start ZkClient when one of the zk servers > is down > > Thanks, > Yosef > --f46d0447967d8bb2a404c0ac4de4--