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 DEC59786F for ; Fri, 19 Aug 2011 16:49:21 +0000 (UTC) Received: (qmail 5521 invoked by uid 500); 19 Aug 2011 16:49:20 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 5441 invoked by uid 500); 19 Aug 2011 16:49:19 -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 5433 invoked by uid 99); 19 Aug 2011 16:49:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 16:49:19 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sonalgoyal4@gmail.com designates 209.85.212.41 as permitted sender) Received: from [209.85.212.41] (HELO mail-vw0-f41.google.com) (209.85.212.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 16:49:15 +0000 Received: by vwm42 with SMTP id 42so3548624vwm.14 for ; Fri, 19 Aug 2011 09:48:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SioDMQEeewXl6BHQA0DZIXmD91O2/uA2WPTIoH9AKc4=; b=jlHB1vOriOA8dU4F3fMLofyzb5gSgKi9NjfLbvHHrQ1lQhSdjHMHbDMqtYa+PsdNaW 86eocFfSGiKuc4mPUronunZVRWXmRKBO6f3yQLGxHD5pl3gUJdYGNLa3e/BunbKu3Bn+ Pc18cRFl9yO3wQ59CmgA0dlfyNi5G+JbykLgU= MIME-Version: 1.0 Received: by 10.52.76.195 with SMTP id m3mr2287888vdw.194.1313772534408; Fri, 19 Aug 2011 09:48:54 -0700 (PDT) Received: by 10.52.114.234 with HTTP; Fri, 19 Aug 2011 09:48:54 -0700 (PDT) In-Reply-To: <34E9B7D077A04640BDFB43DF226509C20432D860@ustrysvpexch23.kih.kmart.com> References: <131ba11ebeb.-2287056564383405346.-1880238791677346234@zohocorp.com> <34E9B7D077A04640BDFB43DF226509C20432D85B@ustrysvpexch23.kih.kmart.com> <34E9B7D077A04640BDFB43DF226509C20432D860@ustrysvpexch23.kih.kmart.com> Date: Fri, 19 Aug 2011 22:18:54 +0530 Message-ID: Subject: Re: Not Starting Hmaster bacause of Permission denied From: Sonal Goyal To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=bcaec501602f3aa74704aade81ae --bcaec501602f3aa74704aade81ae Content-Type: text/plain; charset=ISO-8859-1 Hi Andy, We run HBase under the same user, so unfortunately I havent seen your issue. But the hbase user definitely needs to own the hbase.rootdir, to be able to write to it. Do your hbase and hadoop users belong to the same group and is the activity dfs folder permissions set correctly for hbase user to write to it? I would try the following to rule out permission issues. bin/hadoop fs -mkdir /activity bin/hadoop fs -chown hbase /activity And then start hbase. If anyone on the list has seen this issue or has some other thoughts, please share. Best Regards, Sonal Crux: Reporting for HBase Nube Technologies On Fri, Aug 19, 2011 at 8:57 PM, Zhong, Andy wrote: > Sonal, > > Humm... Thanks for your reply! But not aware of dfs security is being > used here (Hadoop0.20.2 + Hbase 0.20.3). Is this the top level directory > related to the following the hbase rootdir, and are you suggest to > create the following? > bin/hadoop fs -mkdir /activity/hbase > bin/hadoop fs -chown hbase /activity/hbase > > Below is the definition of the root dir: > hbase.rootdir > hdfs://hadoopStressServer/activity/hbase > > > Regards, > Andy Zhong > > -----Original Message----- > From: Sonal Goyal [mailto:sonalgoyal4@gmail.com] > Sent: Friday, August 19, 2011 3:10 AM > To: user@hbase.apache.org > Subject: Re: Not Starting Hmaster bacause of Permission denied > > Hi Andy, > > I guess you are using dfs security, in which case your hbase user does > not have the permission to create the top level directory /hbase in the > dfs. Can you try the following and then start your master? Let us know > how it goes. > > bin/hadoop fs -mkdir /hbase > bin/hadoop fs -chown hbase /hbase > > > Best Regards, > Sonal > Crux: Reporting for HBase > Nube Technologies > > > > > > > > On Fri, Aug 19, 2011 at 1:02 PM, Zhong, Andy > wrote: > > > Hi All, > > I am facing an issue to start Hmaster bacause of Permission denied, > > although two region servers seem start properly. I will be much > > appreciated if any one could help me to figure out the root cause. I > > have hadoop running under 'hadoop' user, and Hbase running under > 'hbase' > > user. Thanks, - Andy Zhong > > > > > > 2011-08-19 01:30:31,205 FATAL master.HMaster - Not starting HMaster > > because: > > org.apache.hadoop.security.AccessControlException: > > org.apache.hadoop.security.AccessControlException: Permission denied: > > user=hbase, access=WRITE, inode="":hadoop:supergroup:rwxr-xr-x > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructo > > rA > > ccessorImpl.java:39) > > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCo > > ns > > tructorAccessorImpl.java:27) > > at > > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > > at > > org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteExcep > > ti > > on.java:96) > > at > > org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteExce > > pt > > ion.java:58) > > at org.apache.hadoop.hdfs.DFSClient.mkdirs(DFSClient.java:910) > > at > > org.apache.hadoop.hdfs.DistributedFileSystem.mkdirs(DistributedFileSys > > te > > m.java:262) > > at org.apache.hadoop.fs.FileSystem.mkdirs(FileSystem.java:1115) > > at > > org.apache.hadoop.hbase.master.HMaster.(HMaster.java:205) > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructo > > rA > > ccessorImpl.java:39) > > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCo > > ns > > tructorAccessorImpl.java:27) > > at > > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > > at > > org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:1241) > > at > > org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1282) > > > > This message, including any attachments, is the property of Sears > > Holdings Corporation and/or one of its subsidiaries. It is > > confidential and may contain proprietary or legally privileged > > information. If you are not the intended recipient, please delete it > > without reading the contents. Thank you. > > > > This message, including any attachments, is the property of Sears Holdings > Corporation and/or one of its subsidiaries. It is confidential and may > contain proprietary or legally privileged information. If you are not the > intended recipient, please delete it without reading the contents. Thank > you. > --bcaec501602f3aa74704aade81ae--