Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 53906 invoked from network); 24 Jul 2010 19:21:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Jul 2010 19:21:26 -0000 Received: (qmail 53111 invoked by uid 500); 24 Jul 2010 19:21:26 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 53030 invoked by uid 500); 24 Jul 2010 19:21:26 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 53022 invoked by uid 99); 24 Jul 2010 19:21:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jul 2010 19:21:25 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dorserg@gmail.com designates 209.85.214.48 as permitted sender) Received: from [209.85.214.48] (HELO mail-bw0-f48.google.com) (209.85.214.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jul 2010 19:21:21 +0000 Received: by bwz2 with SMTP id 2so3315795bwz.35 for ; Sat, 24 Jul 2010 12:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=GB4VspuKzqN+UEQp66575NkeKhx5IPhpwd7qJBowbr0=; b=hPR/65v0TWeoaS05QB6+0AZOyOWAnHLcdcwp67uHMhviDWzO5jv5OHSQQ/BE2+XIhG scWo0eLdVyMj+ZSqgfp1iGtqK5wLCdg3tOkkSFmxZEn4ltPjqBy4y5Kc9BwxX1ddgMMN SG0dDRVKUrQ96ZLxpX7hJ4rlcvsS8Q9GE3UmA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=d6YOsqBhxrvhKyuH4XT6ePjS5ye010/WMVupHagp94ogzMnoMz+SsynNveQE5+xVuL ao/jAdpQalwZQWvwvELewzLvu70a/s59iGSXKDkjqy0goi6kPVdyW+022ZxYy2CszmFP eicAN4VEC+3zy/kVZsTZl5mCnuDtMDUdlEREM= MIME-Version: 1.0 Received: by 10.204.75.81 with SMTP id x17mr3955591bkj.72.1279999258925; Sat, 24 Jul 2010 12:20:58 -0700 (PDT) Received: by 10.204.59.18 with HTTP; Sat, 24 Jul 2010 12:20:58 -0700 (PDT) In-Reply-To: <4C4AF956.4040307@vrijheid.net> References: <4C4AF956.4040307@vrijheid.net> Date: Sat, 24 Jul 2010 22:20:58 +0300 Message-ID: Subject: Re: total # nodes From: Sergey Doroshenko To: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=0016e6db2bef241bb1048c270d03 --0016e6db2bef241bb1048c270d03 Content-Type: text/plain; charset=ISO-8859-1 You may want to use 4-letter-word commands: http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html#sc_zkCommands "srvr" command dumps node count along with other information. Also, there's a patch integrated to trunk, at https://issues.apache.org/jira/browse/ZOOKEEPER-744, which introduces "mntr" command that also dumps a lot of useful data, in particular # of nodes and approx data size. On Sat, Jul 24, 2010 at 5:31 PM, Maarten Koopmans wrote: > Hi, > > Relating to the previous question: is there a quick way to get the total # > nodes in a Zookeeper cluster (so I can determine utilization)? > > Best, > > Maarten > -- Regards, Sergey http://dorserg.com --0016e6db2bef241bb1048c270d03--