ranger-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zs." <gzsom...@gmail.com>
Subject Re: Periodically refresh a service definition
Date Mon, 28 Jan 2019 23:09:13 GMT
Hi,

 The getDefaultRangerPolicies is get called only when a new service is
created - so no need to re-register the definition, just re-create the
service, and your service will be called.
However, why don't you just push the new policies from your external
services to Ranger admin?

Regards,
Zsombor


On Mon, Jan 28, 2019 at 5:17 PM Matteo Alessandroni <
matteo.alessandroni@tirasa.net> wrote:

> Hi,
>
> I have created a custom service definition that extends
> "RangerServiceHdfs" and overridden the "getDefaultRangerPolicies()" method
> so that every time the service definition is registered to Ranger Admin a
> list of "RangerPolicy" is taken from an external REST service and added to
> Ranger.
>
> Would it be possible to periodically refresh a service definition? I mean
> like automatically delete and re-register it?
>
> Thanks!
> Best regards,
> Matteo
>
>
> --
>
> Dott. Matteo Alessandroni
>
> Software Engineer @ Tirasa S.r.l.
>
> Viale Vittoria Colonna, 97 - 65127 Pescara
> Tel +39 0859116307 / FAX +39 0859111173
> http://www.tirasa.net
>
> Apache Syncope PMC Member
> http://people.apache.org/phonebook.html?uid=skylark17
> [image: Tirasa S.r.l.] <http://www.tirasa.net>
>

Mime
View raw message