Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 97342 invoked from network); 29 May 2009 13:35:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 May 2009 13:35:23 -0000 Received: (qmail 99795 invoked by uid 500); 29 May 2009 13:35:36 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 99760 invoked by uid 500); 29 May 2009 13:35:36 -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 99724 invoked by uid 99); 29 May 2009 13:35:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2009 13:35:33 +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 (athena.apache.org: domain of feeder.of.the.bears@gmail.com designates 209.85.217.167 as permitted sender) Received: from [209.85.217.167] (HELO mail-gx0-f167.google.com) (209.85.217.167) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2009 13:35:21 +0000 Received: by gxk11 with SMTP id 11so10315569gxk.5 for ; Fri, 29 May 2009 06:35:01 -0700 (PDT) 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 :date:message-id:subject:from:to:content-type; bh=9cZpXkjMEmuCvrfspcFjaO7qppUBebKoHNVwDtRAutg=; b=rW1SaWesEGH9yRE4TcB30MHkZ6lojFIuLvpa/A1uQg9J/+Kp32Km9AjxvH8oSIsIzY 1EoIdYUpyAR5HgH412NDdmycvN+naiATJU1I5p8DeK0tZl9lno92j0805BLzhNQ9mjYy NrR2t06pIFi63uSkLjJWoy2qbSJuZ1KJIaDgs= 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=olG5efzID0SK+i36TFRLmzAM8YfePT7aHNe8s3nzB3XztHAA7oslF6J8SxhlReY0Qy 6Lu6XmaawU/hqkqEO5N7IBJ6546LaruZSKfWwtpKl84Zzg6Y6gB6mZ4oA+UWufrPe0t8 Q8JGKYMXK6Hc+0kzygsU3YqVQaA74hx35XoPw= MIME-Version: 1.0 Received: by 10.90.120.14 with SMTP id s14mr2094040agc.51.1243604100949; Fri, 29 May 2009 06:35:00 -0700 (PDT) In-Reply-To: References: Date: Fri, 29 May 2009 06:35:00 -0700 Message-ID: Subject: Re: Some thoughts on Zookeeper after using it for a while in the CXF/DOSGi subproject From: David Pollak To: zookeeper-user@hadoop.apache.org, davidb@apache.org Content-Type: multipart/alternative; boundary=001636283794ada748046b0d245e X-Virus-Checked: Checked by ClamAV on apache.org --001636283794ada748046b0d245e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, May 29, 2009 at 6:12 AM, wrote: > Hi all, > > I have started using Zookeeper to provide Discovery implementation in > the Distributed OSGi codebase in the CXF/DOSGi subproject > (http://cxf.apache.org/distributed-osgi.html). > > It works great (hey! a happy customer) but I do have some thoughts > regarding Maven and OSGi. > * In CXF we use Maven to build everything. To depend on Zookeeper we > need to pull it in from a Maven repository. I couldn't find Zookeeper > in any main Maven repos, so currently we're pulling it in from > http://people.apache.org/~chirino/zk-repo (a private repo), which is > not ideal. Would there be any chance of getting the zookeeper.jar file > deployed to one of the main Maven repo's (e.g. > http://repo2.maven.org/maven2/)? I second this. If you folks want to host at http://scala-tools.org we'd be happy to host this non-Scala but super mega interesting and valuable project. We'll even do builds on our hudson server. > > * To use Zookeeper from within OSGi it has to be turned into an OSGi > bundle. Doing this is not hard and it's currently done in our > buildsystem [1]. However, I think it would make sense to have this > done somewhere in the Zookeeper buildsystem. Matter of fact I think > you should be able to release a single zookeeper.jar that's both an > ordinary jar and an OSGi bundle so it would work in both cases... > * The Zookeeper server is currently started with the zkServer.sh > script, but I think it would make sense to also allow it to run inside > an OSGi container, simply by starting a bundle. Has anyone ever done > any work in this regard? If not I'm planning to spend some time and > try to make this work. > * BTW I made some Windows versions of the zkCli/zkEnv/zkServer > scripts. Interested in taking these? > > Thoughts anyone? > > Best regards, > > David Bosschaert > > [1] > http://svn.apache.org/repos/asf/cxf/dosgi/trunk/discovery/distributed/zookeeper-wrapper/pom.xml > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --001636283794ada748046b0d245e--