ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-9283) Python logging fails with non-ascii characters in Mysql password
Date Thu, 22 Jan 2015 21:12:34 GMT
Dmitry Lysnichenko created AMBARI-9283:
------------------------------------------

             Summary: Python logging fails with non-ascii characters in Mysql password
                 Key: AMBARI-9283
                 URL: https://issues.apache.org/jira/browse/AMBARI-9283
             Project: Ambari
          Issue Type: Task
            Reporter: Dmitry Lysnichenko
            Assignee: Dmitry Lysnichenko
             Fix For: 2.0.0
         Attachments: AMBARI-9283.patch

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_server.py",
line 63, in <module>
    MysqlServer().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 184, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_server.py",
line 34, in install
    self.configure(env)
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_server.py",
line 44, in configure
    mysql_configure()
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_utils.py",
line 34, in mysql_configure
    mysql_users.mysql_adduser()
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_users.py",
line 43, in mysql_adduser
    path='/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 134,
in run
    Logger.info_resource(resource)
  File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", line 81, in
info_resource
    Logger.info(Logger.filter_text(Logger._get_resource_repr(resource)))
  File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", line 104, in
_get_resource_repr
    return Logger.get_function_repr(repr(resource), resource.arguments)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0430' in position 77: ordinal
not in range(128)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message