hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Daniel Cryans (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-2075) HBaseMaster requires HDFS superuser privileges due to waitOnSafeMode
Date Wed, 30 Dec 2009 01:47:29 GMT

    [ https://issues.apache.org/jira/browse/HBASE-2075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795217#action_12795217
] 

Jean-Daniel Cryans commented on HBASE-2075:
-------------------------------------------

Fair enough, thx Andrew!

> HBaseMaster requires HDFS superuser privileges due to waitOnSafeMode
> --------------------------------------------------------------------
>
>                 Key: HBASE-2075
>                 URL: https://issues.apache.org/jira/browse/HBASE-2075
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.20.3
>            Reporter: Bassam Tabbara
>            Assignee: Andrew Purtell
>             Fix For: 0.20.3, 0.21.0
>
>         Attachments: HBASE-2075.patch
>
>
> Repro:
> 1) Enable dfs.permissions
> 2) Start HBaseMaster in a different linux user account from HDFS. 
> I get the following exception in the log. It looks like waitOnSafeMode requires HDFS
superuser privileges which I do not grant to HBase.
> {code}
> 2009-12-29 14:44:27,503 ERROR org.apache.hadoop.hbase.master.HMaster: Can not start master
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:1227)
>         at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1268)
> Caused by: org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.security.AccessControlException:
Superuser privilege is requ
> ired
>         at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkSuperuserPrivilege(FSNamesystem.java:4528)
>         at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.datanodeReport(FSNamesystem.java:3560)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.getDatanodeReport(NameNode.java:596)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508)
>         at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959)
>         at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:396)
>         at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)
>         at org.apache.hadoop.ipc.Client.call(Client.java:739)
>         at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)
>         at $Proxy0.getDatanodeReport(Unknown Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)
>         at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)
>         at $Proxy0.getDatanodeReport(Unknown Source)
>         at org.apache.hadoop.hdfs.DFSClient.datanodeReport(DFSClient.java:818)
>         at org.apache.hadoop.hdfs.DistributedFileSystem.getDataNodeStats(DistributedFileSystem.java:353)
>         at org.apache.hadoop.hbase.util.FSUtils.waitOnSafeMode(FSUtils.java:146)
>         at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:197)
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message