HBASE-24121 [Authorization] ServiceAuthorizationManager isn't dynamically updatable. And it should be (#1439)
Signed-off-by: Bharath Vissapragada <bharathv@apache.org> Signed-off-by: Michael Stack <stack@apache.org> Conflicts: hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
This commit is contained in:
parent
4b94f2ed41
commit
7b1270956a
|
@ -2265,6 +2265,14 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver {
|
|||
if (scheduler instanceof ConfigurationObserver) {
|
||||
((ConfigurationObserver)scheduler).onConfigurationChange(newConf);
|
||||
}
|
||||
// Make sure authManager will read hbase-policy file
|
||||
System.setProperty("hadoop.policy.file", "hbase-policy.xml");
|
||||
synchronized (authManager) {
|
||||
authManager.refresh(newConf, new HBasePolicyProvider());
|
||||
}
|
||||
LOG.info("Refreshed hbase-policy.xml successfully");
|
||||
ProxyUsers.refreshSuperUserGroupsConfiguration(newConf);
|
||||
LOG.info("Refreshed super and proxy users successfully");
|
||||
}
|
||||
|
||||
private void initReconfigurable(Configuration confToLoad) {
|
||||
|
|
Loading…
Reference in New Issue