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

(cherry picked from commit a2a8c48699)
This commit is contained in:
Chao Sun 2018-08-10 15:59:39 -07:00 committed by Konstantin V Shvachko
parent 0420ca5a6f
commit 07054c5994
1 changed files with 0 additions and 1 deletions

View File

@ -1736,7 +1736,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");
}