From user-return-12433-apmail-zookeeper-user-archive=zookeeper.apache.org@zookeeper.apache.org Fri Dec 13 07:19:22 2019 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 [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id E20531936C for ; Fri, 13 Dec 2019 07:19:21 +0000 (UTC) Received: (qmail 59076 invoked by uid 500); 13 Dec 2019 07:19:18 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 59025 invoked by uid 500); 13 Dec 2019 07:19:18 -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 59013 invoked by uid 99); 13 Dec 2019 07:19:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Dec 2019 07:19:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4025AC0584 for ; Fri, 13 Dec 2019 07:19:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id nwogjDWrsB4p for ; Fri, 13 Dec 2019 07:19:16 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.173; helo=mail-lj1-f173.google.com; envelope-from=prashantkumardhotre@gmail.com; receiver= Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id C93CEBC509 for ; Fri, 13 Dec 2019 07:19:15 +0000 (UTC) Received: by mail-lj1-f173.google.com with SMTP id m6so1430852ljc.1 for ; Thu, 12 Dec 2019 23:19:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=NRm7mjQqRtcfhnIsNOYkPP/QKkSXb5FJLmE34H68z4Y=; b=jyVzPdbwQDj88Bt7aGZdDc3gT7pxsfGxwQyvdlDoChSEN08/AQMfHzwZK9T876bbVs oiQnfp8Jz9o4sFYh/m/X837ij73BWQhgWBG95PbK2gyhK+YKUItD5/vQujsX9INDK3/6 hgGg+UIS1dd6AzlBs8cfwF36xETqM9zHFArrt0o2wKEIyAbiT4DP3+vm0ik3trQSuZov qjDQwb+2c6Vl1Ieub+WEhXaEIS9pmPuhspvwt95NUMXNzkA0Ev9e0KTJEOBZcgMYtiM6 hqAQNeU17H6rIRvm0gGkXle+VkPG/VfoW/bfpFuZAmR5+zI6NJZGtVe+BY/nj9i4PsVc 0SwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=NRm7mjQqRtcfhnIsNOYkPP/QKkSXb5FJLmE34H68z4Y=; b=p/2rmcQ8m/q0oImRYCOeRYeXJtGHRmhvZaTd+aw9tATW0Cipfr/Mw4oBBDOq5vqVoA ani5BsK79F09gkyUb3UZKhaTnYNkvDH4jtc0s1jD23i06GH05eR3x6lauSXoea/lcSHE BP1GtkRebboW31A+rboNMqbN9Q7DumsHxKvNOAVeep5gOYEVUouwQWD9kvpv2o3kgcfT gyqHrQeRHknwOhZCnzskXlPM8xqEM83rugT9jKpsm3rIetqGgriDHHM9nnulyxRtH/Yc UDm179JdcwS62KRZQs71aA8szz2ArOy8lRi9AddScj02EkgQ8wRh/tefm8CgQFwEaW8t WA9Q== X-Gm-Message-State: APjAAAUHsUjSmfczYbyZCbFo9ivUdVumgCjJc529RNAHh/0QcToXJZJ0 3K7EuWOTv1kJ4HSAeczCJekpPIryzRR5S+hlVowzIBvl1kMeaA== X-Google-Smtp-Source: APXvYqxiMHJaoqKSC22ldA7wOpBEwPXiq0RyIPGe4+QjAqEiShLojE1Dv6hJ78S9q44skYKJ7EZ8Itel/HNv5w4R864= X-Received: by 2002:a2e:8699:: with SMTP id l25mr8715921lji.159.1576221548989; Thu, 12 Dec 2019 23:19:08 -0800 (PST) MIME-Version: 1.0 From: prashantkumar dhotre Date: Fri, 13 Dec 2019 12:48:56 +0530 Message-ID: Subject: 'zkServer.sh status' connects only to local node ? To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary="00000000000083cf9b059990ad8d" --00000000000083cf9b059990ad8d Content-Type: text/plain; charset="UTF-8" Hi, Could you please help me with a basic query regarding 'zkServer.sh status' ? >From zkServer.sh, it appears that this cmd tries to connect to server at local node and get info. If the local server is down, does it connect to next available server (as specified in config file ) and returns status ? Or is this cmd intended to only report status of local server and not status of zookeeper quorum ? My use case is, my client app needs to connect to zookeeper and create znode. connect routine ( which does zookeeper_init2) has retries and in case of connect failure, it sleeps and retries for number of times. But if zookeeper quorum is down (zookeeper not running ) then I don't want to even attempt connection ( hence avoid wait delay in connect api) Regards, Prashant --00000000000083cf9b059990ad8d--