hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bassam Tabbara (JIRA)" <j...@apache.org>
Subject [jira] Created: (HBASE-2075) HBaseMaster requires HDFS superuser privileges due to waitOnSafeMode
Date Tue, 29 Dec 2009 23:04:29 GMT
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
             Fix For: 0.20.3


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.

{{
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)
}}


-- 
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