You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Abhay Kulkarni <ak...@hortonworks.com> on 2015/07/01 06:10:47 UTC

A question on RangerConfiguration object in Ranger-Admin

All ranger developers,

Which .xml files are used to initialize configuration properties for ranger-admin process? I put my configuration property in ranger-admin-site.xml, but it was not picked up by the following code executing in ranger-admin JVM ( 'url' variable  was null after the call).

String url               = RangerConfiguration.getInstance().get(propertyPrefix + ".policy.rest.url");

Any pointers, help will be much appreciated!!

Thanks!

-Abhay

Re: A question on RangerConfiguration object in Ranger-Admin

Posted by Madhan Neethiraj <mn...@hortonworks.com>.
Abhay,

RangerConfiguration handles only the configuration files used in plugins
(ranger-<type>-security.xml and ranger-<type>-audit.xml). Use of
RangerConfiguration in ranger-admin would require updating its
implementation, for example by adding a method
addResourcesForRangerAdmin() - which should be called during
initialization of ranger-admin.

Hope this helps.

Thanks,
Madhan

On 6/30/15, 9:10 PM, "Abhay Kulkarni" <ak...@hortonworks.com> wrote:

>All ranger developers,
>
>Which .xml files are used to initialize configuration properties for
>ranger-admin process? I put my configuration property in
>ranger-admin-site.xml, but it was not picked up by the following code
>executing in ranger-admin JVM ( 'url' variable  was null after the call).
>
>String url               =
>RangerConfiguration.getInstance().get(propertyPrefix +
>".policy.rest.url");
>
>Any pointers, help will be much appreciated!!
>
>Thanks!
>
>-Abhay