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 21EEE102CF for ; Tue, 29 Oct 2013 03:54:40 +0000 (UTC) Received: (qmail 80786 invoked by uid 500); 29 Oct 2013 03:54:37 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 80656 invoked by uid 500); 29 Oct 2013 03:54:32 -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 80632 invoked by uid 99); 29 Oct 2013 03:54:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Oct 2013 03:54:31 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=DC_IMAGE_SPAM_HTML,DC_IMAGE_SPAM_TEXT,DC_PNG_UNO_LARGO,HTML_IMAGE_ONLY_20,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of comptechgeeky@gmail.com designates 209.85.212.181 as permitted sender) Received: from [209.85.212.181] (HELO mail-wi0-f181.google.com) (209.85.212.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Oct 2013 03:54:26 +0000 Received: by mail-wi0-f181.google.com with SMTP id ex4so2264946wid.8 for ; Mon, 28 Oct 2013 20:54:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ILOUIa10ryZbmEP5Fw+5wxqnDwR8Q+L1JEIFfCEFyUQ=; b=V9Ps+M1Pz/smdG25cK43BM5FbEpsZujcUnC/XVkQhrB0SiyPBIWUCh6Jasx98UxmDr Tf9AibHMr8+w5OrumdoRDk1r34HhTEyFkb2/uERQQrXa6Q07XG5erdzLZRWaJ1a/UMVl nj+jZ2RzBJMhEneTjHsoI12xhtTTOWoUzY1JorPEk7NVUf361aaQcyu2toZiwP27R9VB uqqgAfknW+T9ZgwyACQATXFhk4s4OD+kmkBPWcZ+T15/yO1pCqmsEs9e4BMxS3q/e9g7 KybnNfRrgJY9ky/bqYANYpjLymybQZ2crfze4z00ZLIN8P1g8p6vxa5gMCVbOQOHYb63 RSCA== X-Received: by 10.180.81.104 with SMTP id z8mr2955275wix.4.1383018844924; Mon, 28 Oct 2013 20:54:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.8.100 with HTTP; Mon, 28 Oct 2013 20:53:44 -0700 (PDT) In-Reply-To: References: From: Techy Teck Date: Mon, 28 Oct 2013 20:53:44 -0700 Message-ID: Subject: Re: How to create parent znodes and its children znodes through zkconsole? To: user Content-Type: multipart/mixed; boundary=f46d04426b64f8510604e9d92a76 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04426b64f8510604e9d92a76 Content-Type: multipart/alternative; boundary=f46d04426b64f8510104e9d92a74 --f46d04426b64f8510104e9d92a74 Content-Type: text/plain; charset=ISO-8859-1 Attaching an image on this email thread, if image is not clear on my earlier email.. On Mon, Oct 28, 2013 at 8:49 PM, Techy Teck wrote: > I recently started working with Zookeeper so I am trying to clear my > understanding on znodes and zookeeper as well.. I am trying to create znode > architecture something like in my below image - > > > > > > I am wondering what does black color slash means here? It's the top znode > in the Zookeeper? Whenever I start the zkConsole, and I do `ls /`, I always > see [zookeeper] in the list of znodes.. So this black color slash is the > zookeeper node here, which I always get when I do `ls /` ? > > Secondly, when we create znodes, how do I create persistent znodes? > something like this should be fine for creating persistent nodes - > > create /te > > And here in my diagram I have children of `te` as `v1` and `colo`, so I > will be creating znodes as `/te/v1` and `/te/colo`? If yes, then why not, > we can create znodes as `/v1` and `/colo`, why we always prepend the parent > names with child nodes here?sx > > Sorry if I am asking dumb question here.. I have already read zookeeper > tutorial so I got some basic question on it.. Any help will be appreciated > on this.. Thanks.. > --f46d04426b64f8510104e9d92a74 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Attaching an image on this email thread, if image is not c= lear on my earlier email..


On Mon, Oct 28, 2013 at 8:49 PM, Techy Teck <= comptechgeeky@gmail.com> wrote:
I recently started wor= king with Zookeeper so I am trying to clear my understanding on znodes and = zookeeper as well.. I am trying to create znode architecture something like= in my below image -
=A0
3D""



I am wondering what does black color slash means here? It's= the top znode in the Zookeeper? Whenever I start the zkConsole, and I do `= ls /`, I always see [zookeeper] in the list of znodes.. So this black color= slash is the zookeeper node here, which I always get when I do `ls /` ?
Secondly, when we create znodes, how do I create persistent znodes? som= ething like this should be fine for creating persistent nodes -

=A0= =A0=A0 create /te
=A0=A0=A0
And here in my diagram I have children o= f `te` as `v1` and `colo`, so I will be creating znodes as `/te/v1` and `/t= e/colo`? If yes, then why not, we can create znodes as `/v1` and `/colo`, w= hy we always prepend the parent names with child nodes here?sx

Sorry if I am asking dumb question here.. I have already read zoo= keeper tutorial so I got some basic question on it.. Any help will be appre= ciated on this.. Thanks..

--f46d04426b64f8510104e9d92a74-- --f46d04426b64f8510604e9d92a76--