Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 1614 invoked from network); 29 May 2009 16:14:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 May 2009 16:14:44 -0000 Received: (qmail 9802 invoked by uid 500); 29 May 2009 16:14:56 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 9759 invoked by uid 500); 29 May 2009 16:14:56 -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 9745 invoked by uid 99); 29 May 2009 16:14:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2009 16:14:56 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [69.147.107.21] (HELO mrout2-b.corp.re1.yahoo.com) (69.147.107.21) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2009 16:14:44 +0000 Received: from [10.72.76.64] (snvvpn2-10-72-76-c64.hq.corp.yahoo.com [10.72.76.64]) by mrout2-b.corp.re1.yahoo.com (8.13.8/8.13.8/y.out) with ESMTP id n4TGDbnj087065; Fri, 29 May 2009 09:13:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:subject: references:in-reply-to:content-type:content-transfer-encoding; b=lGN1P0X1SL/DSuOWhDNBcXt7Msf9RIkEAU2hu10pUegnspPV/hP4gqm0cj+p7aja Message-ID: <4A2009B1.3030603@yahoo-inc.com> Date: Fri, 29 May 2009 09:13:37 -0700 From: Benjamin Reed User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: "zookeeper-user@hadoop.apache.org" , "davidb@apache.org" Subject: Re: Some thoughts on Zookeeper after using it for a while in the CXF/DOSGi subproject References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org this is great to hear. it's great to see siblings playing together ;) > * 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/)? > yeah this is an increasing thorn in our side. some of us would like to convert to maven, but we are tied to the hadoop build process since we reuse all of their build/test infrastructure. we will probably be using ivy to connect to maven repositories. > * 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... > i completely agree. please open a jira and submit a patch. > * 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. > we have a current open jira about making it possible to embed the zookeeper server in other applications. the big problem is the System.exits that we have sprinkled around. it shouldn't be hard to make happen since we start and stop the server in our unit tests. > * BTW I made some Windows versions of the zkCli/zkEnv/zkServer > scripts. Interested in taking these? > excellent. please submit a jira and patch! i'm so glad you are working on this. i've been thinking for a long time that ZooKeeper would fit really well with OSGi, but i haven't had time to work on it. thank you! ben