Remove super user privilege requirement for NameNode.getServiceStatus. Contributed by Chao Sun.
(cherry picked from commit a2a8c48699
)
This commit is contained in:
parent
7d1e2e1fbb
commit
baca64cc68
|
@ -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