Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7FF74115CB for ; Mon, 18 Aug 2014 08:25:47 +0000 (UTC) Received: (qmail 80730 invoked by uid 500); 18 Aug 2014 08:25:39 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 80560 invoked by uid 500); 18 Aug 2014 08:25:39 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 80491 invoked by uid 99); 18 Aug 2014 08:25:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2014 08:25:39 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rakeshr@huawei.com designates 119.145.14.65 as permitted sender) Received: from [119.145.14.65] (HELO szxga02-in.huawei.com) (119.145.14.65) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2014 08:25:13 +0000 Received: from 172.24.2.119 (EHLO szxeml420-hub.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BYH95863; Mon, 18 Aug 2014 16:24:31 +0800 (CST) Received: from szxeml561-mbx.china.huawei.com ([169.254.5.186]) by szxeml420-hub.china.huawei.com ([10.82.67.159]) with mapi id 14.03.0158.001; Mon, 18 Aug 2014 16:24:22 +0800 From: Rakesh R To: "user@zookeeper.apache.org" , "zookeeper-user@hadoop.apache.org" CC: "rajeshkumarit8292@gmail.com" Subject: RE: zookeeper in hadoop Thread-Topic: zookeeper in hadoop Thread-Index: AQHPuqkN2Rzx0aWh60mw/56kMG56Z5vV4JIA Date: Mon, 18 Aug 2014 08:24:21 +0000 Message-ID: References: <1408341306344-7580179.post@n2.nabble.com> In-Reply-To: <1408341306344-7580179.post@n2.nabble.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.18.170.130] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Virus-Checked: Checked by ClamAV on apache.org Hi, AFAIK following are few cases where ZK is used in Hadoop & BookKeeper compo= nents. Hadoop is using ZK to provides the high-availability of the Master process = like, 1) HDFS is using ZK for making the NameNode highly available.=20 Also, BKJM(uses BookKeeper as journal manager) which is a sub-module in the= HDFS to store WAL(editlog transactions) http://hadoop.apache.org/docs/r2.3.0/hadoop-yarn/hadoop-yarn-site/HDFSHighA= vailabilityWithNFS.html 2) YARN is using ZK for making the ResourceManager highly available.=20 Also, they are using it for storing the state of the RM in ZooKeeper(ZKRMSt= ateStore: A ZooKeeper-based state-store implementation) http://hadoop.apache.org/docs/r2.4.0/hadoop-yarn/hadoop-yarn-site/ResourceM= anagerRestart.html#Configurations BookKeeper is using ZK for : 1) service discovery - to know the details about the running BK servers 2) metadata storage - keeps all the meta data about the ledgers(user data) 3) Auto-recovery - handle missing replicas to improve the fault-tolerance. http://zookeeper.apache.org/bookkeeper/ Regards, Rakesh -----Original Message----- From: mufc_fan [mailto:rajeshkumarit8292@gmail.com]=20 Sent: 18 August 2014 11:25 To: zookeeper-user@hadoop.apache.org Subject: zookeeper in hadoop I am new to zookeeper and from the documentation I learnt that "zookeeper i= s a sub-project of hadoop". so zookeeper must be used in hadoop. Can any on= e share their knowledge how zookeeper is used in hadoop with simple example= . -- View this message in context: http://zookeeper-user.578899.n2.nabble.com/zo= okeeper-in-hadoop-tp7580179.html Sent from the zookeeper-user mailing list archive at Nabble.com.