Return-Path: X-Original-To: apmail-curator-user-archive@minotaur.apache.org Delivered-To: apmail-curator-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A11E318F45 for ; Sun, 13 Sep 2015 20:44:12 +0000 (UTC) Received: (qmail 70981 invoked by uid 500); 13 Sep 2015 20:44:12 -0000 Delivered-To: apmail-curator-user-archive@curator.apache.org Received: (qmail 70939 invoked by uid 500); 13 Sep 2015 20:44:12 -0000 Mailing-List: contact user-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.apache.org Delivered-To: mailing list user@curator.apache.org Received: (qmail 70929 invoked by uid 99); 13 Sep 2015 20:44:12 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Sep 2015 20:44:12 +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 0EEE4C0041 for ; Sun, 13 Sep 2015 20:44:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.899 X-Spam-Level: ** X-Spam-Status: No, score=2.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-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-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id kBBI2J6DhSpI for ; Sun, 13 Sep 2015 20:44:05 +0000 (UTC) Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id C1D43204DD for ; Sun, 13 Sep 2015 20:44:04 +0000 (UTC) Received: by ioii196 with SMTP id i196so146709768ioi.3 for ; Sun, 13 Sep 2015 13:44:03 -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 :cc:content-type; bh=VR1KxSlQvmKmjA56zbopjKnE70/Clf23vKXJm3r/0BI=; b=yq/rQlSzIMkTY5qELD/hCmgXIn+6OdHNapQVZtvhVWopUemQ2UyVkIY6r+eTUMpFB9 avkgsnzEM0wLafFNZ/kQyJZh9fpmkQTN50Nd6UrQUjreYzhdBCAU9dxY/d6HzDvYzHUy ZfJwvU4KtUO/HtPVnDiMMMUfLO+bcVgvZuCZRQWbMzypnJRpU629+7z1wjNUJy69d4Wg PtqGKtJq3skUwEXLAtX+KMIc2jXkDo+8Q6oBvU9pP2iOeDR/+iWdvRF8jNW14pKrjaLz N4xClx/zYI9G+GQX8N4t97wSAu5+2K6RHnR3UHsCIDvM0c7JvKI8W6FCga75rNDpRwll n3Rw== X-Received: by 10.107.169.216 with SMTP id f85mr18851656ioj.73.1442177043851; Sun, 13 Sep 2015 13:44:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.130.36 with HTTP; Sun, 13 Sep 2015 13:43:44 -0700 (PDT) In-Reply-To: <9A39BFC2-601E-47FA-A10A-BA24569DC818@jordanzimmerman.com> References: <9A39BFC2-601E-47FA-A10A-BA24569DC818@jordanzimmerman.com> From: Check Peck Date: Sun, 13 Sep 2015 13:43:44 -0700 Message-ID: Subject: Re: Best Practice while creating znodes? To: user Cc: user Content-Type: multipart/alternative; boundary=001a1142771e66ed72051fa7021b --001a1142771e66ed72051fa7021b Content-Type: text/plain; charset=UTF-8 Hi Jordan, I was looking at this email which you sent me long time back. Here you mentioned - If I call getChildren(), the entire length of all the children can't exceed 1MB. Suppose, I have 500 clients as client_0, client_1 etc. And each client has 50-60 znodes with some data in it. List children = client.getData().forPath("/root/clients/"); So by length here you mean, actual znode name of all clients? Or something else? Actually I am confuse what does length the the entire length of all the children means? Does it mean data also within each node or just the zookeeper path of those node. On Thu, Nov 7, 2013 at 10:57 AM, Jordan Zimmerman < jordan@jordanzimmerman.com> wrote: > There are very few limitations on naming. You can't use a slash. Have a > look at: > > org.apache.zookeeper.common.PathUtils > > In terms of length, ZooKeeper has a 1MB limit per API call. So, for > example, if you call getChildren(), the entire length of all the children > can't exceed 1MB (unless you reconfigure ZK). > > -JZ > > On Nov 7, 2013, at 10:45 AM, Techy Teck wrote: > > Can anyone help me on this? > > Is there any best practices that we need to follow while creating the > znodes? > > Meaning the znode name should be small not very large names or there > shouldn't be a dot or underscore within the word? > > Anything like that? > > I will be using Apache Curator. > > > > > On Wed, Nov 6, 2013 at 11:24 AM, Techy Teck > wrote: > >> Is there any best practices that we need to follow while creating the >> znodes? >> >> Meaning the znode name should be small not very large names or there >> shouldn't be a dot or underscore within the word? >> >> Anything like that? >> >> > > --001a1142771e66ed72051fa7021b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Jordan,

I was looking at th= is email which you sent me long time back. Here you mentioned=C2=A0 - If I = call getChildren(), the entire length of all the children can't exceed = 1MB. Suppose, I have 500 clients as client_0, client_1 etc. And each client= has 50-60 znodes with some data in it.

List<String> chi= ldren =3D client.getData().forPath("/root/clients/");

So b= y length here you mean, actual znode name of all clients? Or something else= ?

Actually I am confuse what does length the the entire length= of all the children means? Does it mean data also within each node or just= the zookeeper=C2=A0 path of those node.


On Thu, Nov 7, 2013 at 10:5= 7 AM, Jordan Zimmerman <jordan@jordanzimmerman.com>= wrote:
There are very few limitations on naming. You can't use a slash= . Have a look at:

org.apache.zookeeper.common.PathUtils

In terms of length, ZooKeeper has a 1MB limit per API call. So, for exampl= e, if you call getChildren(), the entire length of all the children can'= ;t exceed 1MB (unless you reconfigure ZK).

-JZ

On Nov 7, 2013, at 10:45 AM, Techy Teck <comptechgeeky@gmail.= com> wrote:

Can anyone help me on this?

Is there any best practices that w= e need to follow while creating the znodes?

Meaning the znode name s= hould be small not very large names or there shouldn't be a dot or unde= rscore within the word?

Anything like that?

I will be using Apache Curator.<= br>



On Wed, Nov 6, 2013 at 11:24 AM, Techy Teck <comptechgeeky@gmail= .com> wrote:
Is there any best prac= tices that we need to follow while creating the znodes?

Meaning the = znode name should be small not very large names or there shouldn't be a= dot or underscore within the word?

Anything like that?




--001a1142771e66ed72051fa7021b--