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 073581006E for ; Sun, 9 Feb 2014 03:17:30 +0000 (UTC) Received: (qmail 64173 invoked by uid 500); 9 Feb 2014 03:17:26 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 63747 invoked by uid 500); 9 Feb 2014 03:17:25 -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 63739 invoked by uid 99); 9 Feb 2014 03:17:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Feb 2014 03:17:23 +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.213.182 as permitted sender) Received: from [209.85.213.182] (HELO mail-ig0-f182.google.com) (209.85.213.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Feb 2014 03:17:19 +0000 Received: by mail-ig0-f182.google.com with SMTP id uy17so4533644igb.3 for ; Sat, 08 Feb 2014 19:16:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=Uu+7t9XFw+fbC4TihcPI5nN+6xLpTto8fDZH5pIQ6dw=; b=Up4FHa5Bs9tsE1G7Wuqv/X95E88S2Gw1EFRMum0Io0JGDs+jie2RcbQqE4xe5vuNvm C9FDWBSVNbidHB/0tZa0Nwo/D00bSaLLLl+t27Gkv+z9flyfzJ5DCU0MJlJ7bQSeE2yM p8zEFbYD/CEgItjQx+3JsMyJ8mqnH7be6jS7CpaA0Bl9EmGGHijQQZf57pXPK5KQxf+9 i8NsRquYDKQRlCBaGID4XqhN2xt24FIKhutdANeOKK1Gi58tKCh6xCGLLZLlJ3ElqW4e WlQExPYYRJCaJfYqDltfwI/qUR8b6E/nENPF4lqVgMS7uOJyMchWxWB0DpMIl+W3MRne 1Tfg== X-Gm-Message-State: ALoCoQkQ4ZyiYFo6ONNaRt/Jm5o/qFEvZa26utSi2YdVLMBDtld6XPWok6u1eKRmNqiX8aruJkOy X-Received: by 10.50.138.72 with SMTP id qo8mr5221720igb.8.1391915818835; Sat, 08 Feb 2014 19:16:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.61.97 with HTTP; Sat, 8 Feb 2014 19:16:38 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Sun, 9 Feb 2014 08:46:38 +0530 Message-ID: Subject: Re: Who creates hbase root.dir ? To: "user@hbase.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org A pseudo-distributed tarball setup runs all services as the same user, so the user running HBase is automatically the HDFS superuser and can create the directory by itself if it does not exist. In a Bigtop environment there's a secure user-separation involved, thereby requiring those commands you noticed during the initialization. On Sat, Feb 8, 2014 at 5:08 AM, Jay Vyas wrote: > Hi hbase. > > In normal installations, Im wondering who should create hbase root.dir. > > 1) I have seen pseudo-distributed mode docs implying that Hbase is smart > enough to do it by itself. > > "Let HBase create the hbase.rootdir directory. If you don't, you'll get > warning saying HBase needs a migration run because the directory is missing > files expected by HBase (it'll create them if you let it)." > > 2) But in bigtop, I see "mkdir" in the init-hdfs.sh : > > su -s /bin/bash hdfs -c '/usr/bin/hadoop fs -mkdir /hbase' > su -s /bin/bash hdfs -c '/usr/bin/hadoop fs -chown hbase:hbase /hbase' > > So whats the right way to maintain hbase-root ? > > > > -- > Jay Vyas > http://jayunit100.blogspot.com -- Harsh J