You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/05 08:21:00 UTC

[jira] [Updated] (AMBARI-25492) Ambari Sends Empty metrics_collector_hosts parameters after AMS service is deleted

     [ https://issues.apache.org/jira/browse/AMBARI-25492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated AMBARI-25492:
------------------------------------
    Labels: pull-request-available  (was: )

> Ambari Sends Empty metrics_collector_hosts parameters after AMS service is deleted
> ----------------------------------------------------------------------------------
>
>                 Key: AMBARI-25492
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25492
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.7.5
>            Reporter: Akhil Naik
>            Assignee: Akhil Naik
>            Priority: Major
>              Labels: pull-request-available
>
> I am having an cluster where Ambari metrics collector was installed and removed later as they dont use it . Now there Nifi fails to start due to script error : 
> {code:java}
> ----
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 304, in <module>
>     Master().execute()
>   File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
>     method(env)
>   File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 139, in start
>     import params
>   File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/params.py", line 302, in <module>
>     metrics_collector_host = str(config['clusterHostInfo']['metrics_collector_hosts'][0])
> IndexError: list index out of range
> ----
> {code}
> Issue is easy to reproduce
> 1) Deploy a fresh cluster with HDF
> 2) Remove AMS service 
> 3) try to start/stop or restart nifi service. it will fail with abouve error.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)