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

Ambari Metrics Collector failed to start in Ambari 2.1.2 with UnicodeEncodeError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1.2
    • 2.2.0
    • None

    Description

      Stderr

      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_collector.py", line 131, in <module>
          AmsCollector().execute()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 216, in execute
          method(env)
        File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_collector.py", line 44, in start
          self.configure(env, action = 'start') # for security
        File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_collector.py", line 41, in configure
          ams(name='collector')
        File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
          return fn(*args, **kwargs)
        File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py", line 202, in ams
          group=params.user_group
        File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
          self.env.run()
        File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
          self.run_action(resource, action)
        File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
          provider_action()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/xml_config.py", line 67, in action_create
          encoding = self.resource.encoding
        File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
          self.env.run()
        File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
          self.run_action(resource, action)
        File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
          provider_action()
        File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 90, in action_create
          content = self._get_content()
        File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 127, 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 "<template>", line 5, in top-level template code
      UnicodeEncodeError: 'ascii' codec can't encode character u'\u2028' in position 108: ordinal not in range(128)
      
      
      Old Ambari NEW Ambari HDP Stack
      Ambari 1.7.0 Ambari2.1.2 2.2.0

      Attachments

        1. AMBARI-13684.patch
          5 kB
          Siddharth Wagle
        2. KAFKA.txt
          13 kB
          Siddharth Wagle

        Activity

          People

            swagle Siddharth Wagle
            swagle Siddharth Wagle
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: