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

This commit is contained in:
Chao Sun 2018-08-10 15:59:39 -07:00 committed by Konstantin V Shvachko
parent e7951c69cb
commit a2a8c48699
1 changed files with 0 additions and 1 deletions

View File

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