-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51178/
-----------------------------------------------------------

Review request for Ambari and Vitalyi Brodetskyi.


Bugs: AMBARI-18183
    https://issues.apache.org/jira/browse/AMBARI-18183


Repository: ambari


Description
-------

Traceback (most recent call last):
      File 
"/var/lib/ambari-agent/cache/common-services/FALCON/0.5.0.2.1/package/scripts/falcon_client.py",
 line 81, in <module>
        FalconClient().execute()
      File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
 line 280, in execute
        method(env)
      File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
 line 680, in restart
        self.install(env)
      File 
"/var/lib/ambari-agent/cache/common-services/FALCON/0.5.0.2.1/package/scripts/falcon_client.py",
 line 46, in install
        self.configure(env)
      File 
"/var/lib/ambari-agent/cache/common-services/FALCON/0.5.0.2.1/package/scripts/falcon_client.py",
 line 34, in configure
        falcon('client', action='config')
      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/FALCON/0.5.0.2.1/package/scripts/falcon.py",
 line 102, in falcon
        owner = params.falcon_user)
      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/libraries/providers/properties_file.py",
 line 54, in action_create
        mode = self.resource.mode
      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 "<template>", line 3, in top-level template code
    UnicodeEncodeError: 'ascii' codec can't encode characters in position 
567-568: ordinal not in range(128)


Diffs
-----

  
ambari-agent/src/test/python/resource_management/TestPropertiesFileResource.py 
3dd60e1 
  
ambari-common/src/main/python/resource_management/libraries/providers/properties_file.py
 823f579 
  
ambari-common/src/main/python/resource_management/libraries/resources/properties_file.py
 527b0f6 

Diff: https://reviews.apache.org/r/51178/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk

Reply via email to