Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 78177 invoked from network); 8 Oct 2010 02:44:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Oct 2010 02:44:05 -0000 Received: (qmail 45675 invoked by uid 500); 8 Oct 2010 02:44:05 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 45617 invoked by uid 500); 8 Oct 2010 02:44:05 -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 45609 invoked by uid 99); 8 Oct 2010 02:44:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Oct 2010 02:44:05 +0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=DATE_IN_PAST_06_12,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.145.54.173] (HELO mrout3.yahoo.com) (216.145.54.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Oct 2010 02:44:00 +0000 Received: from [10.72.244.26] (snvvpn1-10-72-244-c26.hq.corp.yahoo.com [10.72.244.26]) by mrout3.yahoo.com (8.13.8/8.13.8/y.out) with ESMTP id o982gbag016751 for ; Thu, 7 Oct 2010 19:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=yahoo-inc.com; s=cobra; t=1286505757; bh=JgBd8ieco4ikI5NZLhUaKWG9OtBtox2u2r9Q5592GGg=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=koDkel25+R2Ym5unu5SlWJS5bjmcgeatgMa2PPTUyNUFs7/FqD/IPY04Kea7nkPvV Ai9GE1jaK4lM7CAk6WGnSNz7iOIAn6Y855IbC3iesO48qQ3ycbmb7KYPsNAtkmEByW Uh3+oNaKpvWjvMtUpA93CqyMjmg6tmsBpYi0hN+Y= Message-ID: <4CADF20F.5020906@yahoo-inc.com> Date: Thu, 07 Oct 2010 09:15:11 -0700 From: Benjamin Reed User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100922 Thunderbird/3.1.4 MIME-Version: 1.0 To: zookeeper-user@hadoop.apache.org Subject: Re: Question on production readiness, deployment, data of BookKeeper / Hedwig References: <763522.20983.qm@web31812.mail.mud.yahoo.com> In-Reply-To: <763522.20983.qm@web31812.mail.mud.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit hi amit, sorry for the late response. this week has been crunch time for a lot of different things. here are your answers: production 1. it is still in prototype phase. we are evaluating different aspects, but there is still some work to do to make it production ready. we also need to get an engineering team to signup to stand behind it. 2. it's a generic pub/sub message bus. in some sense it is really a datacenter solution with extensions for multi-data center operation, so it is perfectly reasonable to use it in a single datacenter setting. 3. yeah, we have removed the hw.bash script. it had some hardcoded assumptions and was a swiss army knife on steroids. he have been breaking it up into simpler scripts. 4. session expiry really represents a fundamental connectivity problem, so both bk and hedwig restart the component that gets the expired session errror. data 1. yes. 2. once all subscribers have consumed a message there is a background process that cleans it up. 3. yes there is a replication factor and we ensure replication on writes and there is a recovery tool to recover bookies that fail. we don't have to worry about conflicts because there is only a single writer for a give ledger. because of this we do not need to do quorum reads. documentation yes, this is something we need to work on. i'll see if i can push out some of our hello world applications. we'd also like to put a JMS API on top so that the API is more familiar (and documented :). i don't want to delay the answers to your other questions, so let me answer that HedwigSubscriber is the class for clients. the other classes are internal. (for cross data center hubs use a special kind of subscriptions to do cross data center updates.) ben On 10/05/2010 10:32 PM, amit jaiswal wrote: > Hi, > > In Hedwig talk (http://vimeo.com/13282102), it was mentioned that the primary > use case for Hedwig comes from the distributed key-value store PNUTS in Yahoo!, > but also said that the work is new. > > Could you please about the following: > > Production readiness / Deployment > 1. What is the production readiness of Hedwig / BookKeeper. Is it being used > anywhere (like in PNUTS)? > 2. Is Hedwig designed to use as a generic message bus or only for > multi-datacenter operations? > 3. Hedwig installation and deployment is done through a script hw.bash, but that > is difficult to use especially in a production environment. Are there any other > packages available that can simplify the deployment of hedwig. > 4. How does BK/Hedwig handle zookeeper session expiry? > > Data Deletion, Handling data loss, Quorum > 1. Does BookKeeper support deletion of old log entries which have been consumed. > 2. How does Hedwig handles the case when all subscribers have consumed all the > messages. In the talk, it was said that a subscriber can come back after hours, > days or weeks. Is there any data retention / expiration policy for the data that > is published? > 3. How does Hedwig handles data loss? There is a replication factor, and a write > operation must be accepted by majority of the bookies, but how data conflicts > are handled? Is there any possibility of data conflict at all? Is the > replication only for recovery? When the hub is reading data from bookies, does > it reads from all the bookies to satisfy quorum read? > > Code > What is the difference between PubSubServer, HedwigSubscriber, > HedwigHubSubscriber. Is there any HelloWorld program that simply illustrates how > to instantiate a hedwig client, and publish/consume messages. (HedwigBenchmark > class is helpful, but was looking something like API documentation). > > -regards > Amit