hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject hadoop git commit: Remove super user privilege requirement for NameNode.getServiceStatus. Contributed by Chao Sun.
Date Fri, 10 Aug 2018 23:20:40 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk e7951c69c -> a2a8c4869


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

Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/a2a8c486
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/a2a8c486
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/a2a8c486

Branch: refs/heads/trunk
Commit: a2a8c486998b81d2c73804a07cc74f5269bfd904
Parents: e7951c6
Author: Chao Sun <sunchao@apache.org>
Authored: Fri Aug 10 15:59:39 2018 -0700
Committer: Konstantin V Shvachko <shv@apache.org>
Committed: Fri Aug 10 15:59:39 2018 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java  | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/a2a8c486/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java
index 8ad5767..fd856a3 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java
@@ -1757,7 +1757,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");
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message