Hello everyone.

The problem is coming from Ambari.
There is a script here :

/usr/lib/ambari-server/lib/resource_management/libraries/functions/ranger_functions_v2.py

/usr/lib/ambari-agent/lib/resource_management/libraries/functions/ranger_functions_v2.py

At line 168,

L168 : @safe_retry(times=*75*, sleep_time=*8*, backoff_factor=1,
err_class=Fail, return_on_fail=None)

So it is hardcoded in an ambari script for the moment.

Note : there are as a script if the API is v1 :

/usr/lib/ambari-server/lib/resource_management/libraries/functions/ranger_functions.py

/usr/lib/ambari-agent/lib/resource_management/libraries/functions/ranger_functions.py


So it is not at all a ranger problem, but an ambari problem ;-).


Best regards.

Lune.

On Thu, Aug 4, 2016 at 9:01 AM, Lune Silver <lunescar.ran...@gmail.com>
wrote:

> Hello !
>
> I have an HDP 2.3.4.7 with Ambari 2.2.2.
> I enabled the plugin Kafka for Ranger.
>
> I noticed something a little bit annoying.
> If Ranger Admin is down, Kafka will take a looong time to start, because
> it tries to connect to Ranger Admin to get the repository.
> ###
>
> Will retry 74 time(s), caught exception: Connection failed to Ranger
> Admin. Reason - [Errno 111] Connection refused.. Sleeping for 8 sec(s)
> ###
>
> Is there a way to decrease this number of retry or the duration of sleep
> between retry ?
>
> Ranger Admin down should not have any impact on the components for which
> the plugins are enabled, right ?
>
> BR.
>
> Lune.
>

Reply via email to