From a2a8c486998b81d2c73804a07cc74f5269bfd904 Mon Sep 17 00:00:00 2001 From: Chao Sun Date: Fri, 10 Aug 2018 15:59:39 -0700 Subject: [PATCH] Remove super user privilege requirement for NameNode.getServiceStatus. Contributed by Chao Sun. --- .../java/org/apache/hadoop/hdfs/server/namenode/NameNode.java | 1 - 1 file changed, 1 deletion(-) 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 8ad576757f..fd856a39b8 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 @@ synchronized void transitionToStandby() synchronized HAServiceStatus getServiceStatus() throws ServiceFailedException, AccessControlException { - namesystem.checkSuperuserPrivilege(); if (!haEnabled) { throw new ServiceFailedException("HA for namenode is not enabled"); }