File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
hbase-server/src/main/java/org/apache/hadoop/hbase/ipc Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2265,6 +2265,14 @@ public void onConfigurationChange(Configuration newConf) {
22652265 if (scheduler instanceof ConfigurationObserver ) {
22662266 ((ConfigurationObserver )scheduler ).onConfigurationChange (newConf );
22672267 }
2268+ // Make sure authManager will read hbase-policy file
2269+ System .setProperty ("hadoop.policy.file" , "hbase-policy.xml" );
2270+ synchronized (authManager ) {
2271+ authManager .refresh (newConf , new HBasePolicyProvider ());
2272+ }
2273+ LOG .info ("Refreshed hbase-policy.xml successfully" );
2274+ ProxyUsers .refreshSuperUserGroupsConfiguration (newConf );
2275+ LOG .info ("Refreshed super and proxy users successfully" );
22682276 }
22692277
22702278 private void initReconfigurable (Configuration confToLoad ) {
You can’t perform that action at this time.
0 commit comments