Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25492

Ambari Sends Empty metrics_collector_hosts parameters after AMS service is deleted

    XMLWordPrintableJSON

    Details

      Description

      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 :

      ----
      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
      ----
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              asnaik Akhil Naik
              Reporter:
              asnaik Akhil Naik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m