Laurens, The fix for right now is to update the Metron escalation topic setting in the Metron Config in ambari. It should be in the rest tab. I don’t think there is a management ui tab, but if there is check there.
After changing the setting, you will be prompted to restart dependent services, and after that you should be all set. Please log a jira on this. On September 9, 2017 at 21:27:13, Casey Stella ([email protected]) wrote: So the escalation topic is a new parameter for the REST service in 0.4.1. It appears that the ambari upgrade story is a bit weak. Is it possible to modify /var/lib/ambari-agent/cache/ common-services/METRON/0.4.1/package/templates/metron.j2 and - create a kafka topic called 'metron_escalation' - replace the {{metron_escalation_topic}} with 'metron_escalation' I'm honestly not sure if ambari will act more sensible after that. Does anyone with more ambari-fu than me have any idea if this will work and, if not, what we should direct people to do who are migrating? On Sat, Sep 9, 2017 at 17:22 Laurens Vets <[email protected]> wrote: > Hello, > > After upgrading from 0.4.1-rc (from last week) to rc4, both Metron > Management UI and Metron REST fail to start with an error related to > "METRON_ESCALATION_TOPIC="{{metron_escalation_topic}}"". > > Does anyone know what might be going on here? > > Metron Management UI Start output: > > Traceback (most recent call last): > File > "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/ > package/scripts/management_ui_master.py", > line 95, in <module> > ManagementUIMaster().execute() > File > "/usr/lib/python2.6/site-packages/resource_management/ > libraries/script/script.py", > line 280, in execute > method(env) > File > "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/ > package/scripts/management_ui_master.py", > line 67, in start > self.configure(env) > File > "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/ > package/scripts/management_ui_master.py", > line 47, in configure > content=Template("metron.j2") > File > "/usr/lib/python2.6/site-packages/resource_management/core/base.py", > line 155, in __init__ > self.env.run() > File > "/usr/lib/python2.6/site-packages/resource_management/ > core/environment.py", > line 160, in run > self.run_action(resource, action) > File > "/usr/lib/python2.6/site-packages/resource_management/ > core/environment.py", > line 124, in run_action > provider_action() > File > "/usr/lib/python2.6/site-packages/resource_management/ > core/providers/system.py", > line 123, in action_create > content = self._get_content() > File > "/usr/lib/python2.6/site-packages/resource_management/ > core/providers/system.py", > line 160, in _get_content > return content() > File > "/usr/lib/python2.6/site-packages/resource_management/core/source.py", > line 51, in __call__ > return self.get_content() > File > "/usr/lib/python2.6/site-packages/resource_management/core/source.py", > line 142, in get_content > rendered = self.template.render(self.context) > File "/usr/lib/python2.6/site-packages/ambari_jinja2/environment.py", > line 891, in render > return self.environment.handle_exception(exc_info, True) > File > "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/ > package/templates/metron.j2", > line 42, in top-level template code > METRON_ESCALATION_TOPIC="{{metron_escalation_topic}}" > File > "/usr/lib/python2.6/site-packages/resource_management/ > libraries/script/config_dictionary.py", > line 73, in __getattr__ > raise Fail("Configuration parameter '" + self.name + "' was not > found in configurations dictionary!") > resource_management.core.exceptions.Fail: Configuration parameter > 'metron_escalation_topic' was not found in configurations dictionary! > > Metron REST Start output: > > Traceback (most recent call last): > File > "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/ > package/scripts/rest_master.py", > line 83, in <module> > RestMaster().execute() > File > "/usr/lib/python2.6/site-packages/resource_management/ > libraries/script/script.py", > line 280, in execute > method(env) > File > "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/ > package/scripts/rest_master.py", > line 55, in start > self.configure(env) > File > "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/ > package/scripts/rest_master.py", > line 43, in configure > content=Template("metron.j2") > File > "/usr/lib/python2.6/site-packages/resource_management/core/base.py", > line 155, in __init__ > self.env.run() > File > "/usr/lib/python2.6/site-packages/resource_management/ > core/environment.py", > line 160, in run > self.run_action(resource, action) > File > "/usr/lib/python2.6/site-packages/resource_management/ > core/environment.py", > line 124, in run_action > provider_action() > File > "/usr/lib/python2.6/site-packages/resource_management/ > core/providers/system.py", > line 123, in action_create > content = self._get_content() > File > "/usr/lib/python2.6/site-packages/resource_management/ > core/providers/system.py", > line 160, in _get_content > return content() > File > "/usr/lib/python2.6/site-packages/resource_management/core/source.py", > line 51, in __call__ > return self.get_content() > File > "/usr/lib/python2.6/site-packages/resource_management/core/source.py", > line 142, in get_content > rendered = self.template.render(self.context) > File "/usr/lib/python2.6/site-packages/ambari_jinja2/environment.py", > line 891, in render > return self.environment.handle_exception(exc_info, True) > File > "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/ > package/templates/metron.j2", > line 42, in top-level template code > METRON_ESCALATION_TOPIC="{{metron_escalation_topic}}" > File > "/usr/lib/python2.6/site-packages/resource_management/ > libraries/script/config_dictionary.py", > line 73, in __getattr__ > raise Fail("Configuration parameter '" + self.name + "' was not > found in configurations dictionary!") > resource_management.core.exceptions.Fail: Configuration parameter > 'metron_escalation_topic' was not found in configurations dictionary! >
