Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-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 9B34C9BC4 for ; Fri, 10 Feb 2012 11:48:38 +0000 (UTC) Received: (qmail 5877 invoked by uid 500); 10 Feb 2012 11:48:37 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 5826 invoked by uid 500); 10 Feb 2012 11:48:36 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 5818 invoked by uid 99); 10 Feb 2012 11:48:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 11:48:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harsh@cloudera.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pw0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 11:48:31 +0000 Received: by pbcwz17 with SMTP id wz17so2879045pbc.14 for ; Fri, 10 Feb 2012 03:48:11 -0800 (PST) Received: by 10.68.227.132 with SMTP id sa4mr15709560pbc.64.1328874491197; Fri, 10 Feb 2012 03:48:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.101.3 with HTTP; Fri, 10 Feb 2012 03:47:51 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Fri, 10 Feb 2012 17:17:51 +0530 Message-ID: Subject: Re: Which server store the root and .meta. information? To: user@hbase.apache.org Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlOWK91LCycw5iFXj6TQKHkYCmQsgVUzx8O5RSzL9mFmr/rduMEZQj/3yVN/vnPa7Cr7r50 The HMaster does not host regions, and the -ROOT- is a region; It is hosted by one of the assigned RegionServers, and its location is registered under ZooKeeper. The -ROOT- region then holds the location of the .META. (Which again, is another region, and is hosted by RegionServers in just the same way). For your ZK question, if you run ZK in HBase's embedded mode, it runs on the HMaster, while if you run it standalone you can choose to run it anywhere. The latter method is what is recommended for production deployments, and its preferable to host it separately on its own boxes. P.s. The JIRA at https://issues.apache.org/jira/browse/HBASE-3171 may simplify this someday :) 2012/2/10 yonghu : > Thanks! > I know this. I just want to know which nodes store this information > when the client first contact to HBase cluster, HMaster or > RegionServer or a special node in which runs the zookeeper. > > And the other question is whether zookeeper runs on the same nodes as > Hbase in the cluster or it runs in a separate nodes? > > Yong > > On Fri, Feb 10, 2012 at 12:16 PM, Roger wrote: >> To my knowledge, it is a three level tree-like structure. >> ------------------ >> =B8=C3=D3=CA=BC=FE=B4=D3=D2=C6=B6=AF=C9=E8=B1=B8=B7=A2=CB=CD >> >> ------------------ Original ------------------ >> From: "yonghu" >> Date: Fri, Feb 10, 2012 07:12 PM >> To: "user"; >> Subject: Which server store the root and .meta. information? >> >> >> Hello, >> >> I read some articles which mention before the client connect to the >> master node, he will first connect to the zookeeper node and find the >> location of the root node. So, my question is that the node which >> stores the root information is different from master node or they are >> the same node? >> >> Thanks! >> >> Yong --=20 Harsh J Customer Ops. Engineer Cloudera | http://tiny.cloudera.com/about