Hi Abhay,

thanks for the info!
That logic just downloads the latest policies and tags but it does not invalidate cache, right? My problem is that when I try to push new policies via REST API the plugin keeps previous cached policies and does not replace those with new ones so in that case I need to first invalidate cache and then push new policies.

Regards,
Matteo


On 25/06/19 23:11, Abhay Kulkarni wrote:
https://issues.apache.org/jira/browse/RANGER-2349 provides a way to download policies (and tags) on demand. Ranger plugin code may call RangerBasePlugin.refreshPoliciesAndTags() API to get the latest policies and tags.

Thanks,
-Abhay

On Tue, Jun 25, 2019 at 9:11 AM Don Bosco Durai <[email protected] <mailto:[email protected]>> wrote:

    You want to shorten the refresh time or explicitly trigger cache
    invalidate? The former is easy and there is a property to do it.

    Bosco

    *From: *Matteo Alessandroni <[email protected]
    <mailto:[email protected]>>
    *Reply-To: *<[email protected] <mailto:[email protected]>>
    *Date: *Tuesday, June 25, 2019 at 8:45 PM
    *To: *"[email protected] <mailto:[email protected]>"
    <[email protected] <mailto:[email protected]>>
    *Subject: *Programmatically invalidate cache of Ranger plugins

    Hi,

    is there a way to programmatically refresh cache of a Ranger plugin?
    I'm talking about the part related to [1].

    Thanks.
    Best regards,
    Matteo


    [1] http://community.hortonworks.com/answers/66604/view.html



Reply via email to