Remove super user privilege requirement for NameNode.getServiceStatus. Contributed by Chao Sun.
This commit is contained in:
parent
e7951c69cb
commit
a2a8c48699
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue