Created 10-26-2022 08:37 AM
I am using the importPoliciesFromFile API call but see it deletes and creates the policies. Will this cause any impact on authorization if someone hits the api at the same time or is this API synchronous?
By synchronous I mean, does it stop all other code execution and user interaction until the call returns?
Created 10-26-2022 12:35 PM
@drewski7
Ranger plugins that use Ranger as an authorization module will cache local policy and use the same for authorization purposes
Ranger plugins cache the tags and periodically poll the tag store for any changes. When a change is detected, the plugins update the cache. In addition, the plugins store the tag details in a local cache file – just as the policies are stored in a local cache file. When the component restarts, the plugins will use the tag data from the local cache file if the tag store is not reachable.
Ranger takes 30secs to refresh policies check the "Plugin" option in the ranger UI but you can change the refresh time
In Ambari UI->HDFS->Services->Configs->"Advance ranger-hdfs-security" you can change the poll interval here[refresh time].
Geoffrey
Created 10-26-2022 12:35 PM
@drewski7
Ranger plugins that use Ranger as an authorization module will cache local policy and use the same for authorization purposes
Ranger plugins cache the tags and periodically poll the tag store for any changes. When a change is detected, the plugins update the cache. In addition, the plugins store the tag details in a local cache file – just as the policies are stored in a local cache file. When the component restarts, the plugins will use the tag data from the local cache file if the tag store is not reachable.
Ranger takes 30secs to refresh policies check the "Plugin" option in the ranger UI but you can change the refresh time
In Ambari UI->HDFS->Services->Configs->"Advance ranger-hdfs-security" you can change the poll interval here[refresh time].
Geoffrey