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