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 @@ synchronized void transitionToStandby()
|
|||||||
|
|
||||||
synchronized HAServiceStatus getServiceStatus()
|
synchronized HAServiceStatus getServiceStatus()
|
||||||
throws ServiceFailedException, AccessControlException {
|
throws ServiceFailedException, AccessControlException {
|
||||||
namesystem.checkSuperuserPrivilege();
|
|
||||||
if (!haEnabled) {
|
if (!haEnabled) {
|
||||||
throw new ServiceFailedException("HA for namenode is not enabled");
|
throw new ServiceFailedException("HA for namenode is not enabled");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user