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

View File

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