Browse Source

Remove super user privilege requirement for NameNode.getServiceStatus. Contributed by Chao Sun.

(cherry picked from commit a2a8c486998b81d2c73804a07cc74f5269bfd904)
Chao Sun 6 năm trước cách đây
mục cha
commit
305b9a652a

+ 0 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java

@@ -1788,7 +1788,6 @@ public class NameNode extends ReconfigurableBase implements
 
   synchronized HAServiceStatus getServiceStatus()
       throws ServiceFailedException, AccessControlException {
-    namesystem.checkSuperuserPrivilege();
     if (!haEnabled) {
       throw new ServiceFailedException("HA for namenode is not enabled");
     }