Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 98741 invoked from network); 11 Jan 2010 19:31:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jan 2010 19:31:18 -0000 Received: (qmail 47846 invoked by uid 500); 11 Jan 2010 19:31:18 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 47797 invoked by uid 500); 11 Jan 2010 19:31:18 -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 47787 invoked by uid 99); 11 Jan 2010 19:31:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2010 19:31:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ted.dunning@gmail.com designates 209.85.216.204 as permitted sender) Received: from [209.85.216.204] (HELO mail-px0-f204.google.com) (209.85.216.204) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2010 19:31:07 +0000 Received: by pxi42 with SMTP id 42so16042200pxi.5 for ; Mon, 11 Jan 2010 11:30:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=SL/yjSJe2aQezp3kBvvQmmUwjfO8q5IsvMqUUZzY6eM=; b=GhIDq89eGDSbpYX6PogAJ0hPHfw7nYodlguAEzo0JofOjcRiQoPc7K+naRDXiDosu8 UvRLzy/YfxprjTpghWrucfsU93IZ8kZXWOn43bRDk807cOD2CKNBh6vm4+1ayMExvc83 CmGLFVm89c3oWUQEumTuIrh5Agp5e5f71CKNc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=hsd0zCsTeQHt/wqtDo9qmwG7tNaAOG3MSdodf3ybjFQU4ZdJzKn40CuPFWiJe6Ozfp NMhhxbAHA8a+xFZmKAvP7/mzz49yeO8LuQqO2SnDnEtuzMsnbB8L7HLX6txkUgO4zYT/ CC2W5R61/T1do5w3Hr0u6Z9lMbk1Xr+dPhFI8= MIME-Version: 1.0 Received: by 10.115.3.6 with SMTP id f6mr3719039wai.148.1263238245465; Mon, 11 Jan 2010 11:30:45 -0800 (PST) In-Reply-To: References: <4B4B64B3.4000102@apache.org> <4B4B6BD6.9040901@apache.org> From: Ted Dunning Date: Mon, 11 Jan 2010 11:30:24 -0800 Message-ID: Subject: Re: blog post about zk and group membership To: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=0016e64dd768e34aee047ce8921f X-Virus-Checked: Checked by ClamAV on apache.org --0016e64dd768e34aee047ce8921f Content-Type: text/plain; charset=UTF-8 Sounds like a good job for Avro. On Mon, Jan 11, 2010 at 10:27 AM, Adam Rosien wrote: > Yes, your Disqus comment went through. We filed a ticket with them > about some javascript issues that messed up the UI. > > Data wrappers would certainly work but I feel like it's still a > black-hole to fall into that something like node-metadata (to do > something like HTTP's Content-Type") would help solve. That too can be > a black hole :(. I need more practical experience to find the right > balance. > > .. Adam > > On Mon, Jan 11, 2010 at 10:20 AM, Patrick Hunt wrote: > > Adam Rosien wrote: > >> > >> Re "off the shelf", my title of "Actually Implementing" was a *bit* > >> snarky to try and gain some readers, but it wasn't intended to be > >> sharp criticism; more documented recipes is a good thing for everyone. > >> I'd be happy to submit a JIRA with a group membership recipe. > >> > > > > Ya, I got that, no worries. It was a valid point and something I've been > > asked before. Figured I could get some (addl) free work out of the deal. > ;-) > > > > Disqus seems to be having troubles, I've tried like 3 times to comment on > > your blog post, did it finally make it through? > > > >> Re zkclient, I agree that documentation is a big thing, which I hope > >> to help out with as I use it more. I'm talking now with one of the > >> developers about zkclient's implementation of data serialization since > >> that is another big area; zk pushes all serialization semantics into > >> the clients, which is ok but requires its own practical strategies. > > > > Yea, that's an interesting point. I suspect that a wrapper around the > data > > (zk contrib? subclass/proxy of ZooKeeper?) that put content-type type > > information into the "header" of the data portion might be useful. The > > wrapper could encode/decode based on the data type in ZK, vs the data > type > > the user would like. The wrapper could support whichever encode/decode > the > > user would like (say xml/json to start) etc... Donno how useful in > general > > but in a larger system with a bunch of heterogeneous clients accessing it > > might be interesting. > > > > Patrick > > > >> > >> On Mon, Jan 11, 2010 at 9:49 AM, Patrick Hunt wrote: > >>> > >>> Adam, this is awesome! I've retweeted it on my twitter account: > >>> http://twitter.com/phunt/status/7637054275 > >>> > >>> A few comments: > >>> > >>> 1) you are correct about the "off the shelf" part, but really alot of > >>> that > >>> is our marketing blurb, we paint with a broad stroke. I think it would > >>> make > >>> sense to include this sort of detail in the "recipes" page though, > would > >>> you > >>> be interested to create a JIRA and submit some content? (you could re > >>> purpose alot of what you have in your post) > >>> > >>> 2) re zkclient - I have not been following that project closely of > late, > >>> however Mahadev and I did review their code a few months ago. At that > >>> time > >>> we had some concerns about the semantic impact of some of the design > >>> choices > >>> they made (which were fine, just not well documented and therefor easy > >>> for > >>> users to miss). In particular (again, at the time, may be addressed by > >>> now) > >>> watch notifications could be lost during disconnected/expired sessions, > >>> and > >>> the user would not be made aware of this. > >>> > >>> 3) excellent point/suggestion on the "rogue" service > >>> > >>> Patrick > >>> > >>> Adam Rosien wrote: > >>>> > >>>> I've written a blog post about using ZooKeeper for group membership at > >>>> KaChing: > >>>> > >>>> http://bit.ly/6yraP6 > >>>> > >>>> > http://eng.kaching.com/2010/01/actually-implementing-group-management.html > >>>> > >>>> Any comments or feedback is welcome. > >>>> > >>>> .. Adam > > > -- Ted Dunning, CTO DeepDyve --0016e64dd768e34aee047ce8921f--