ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14823) filter_text in logger.py fails to replace non-ascii text
Date Thu, 28 Jan 2016 10:48:40 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-14823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15121209#comment-15121209
] 

Hadoop QA commented on AMBARI-14823:
------------------------------------

{color:green}+1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12784828/AMBARI-14823.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 1 new or modified
test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of
javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number
of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in .

Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/5091//testReport/
Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/5091//console

This message is automatically generated.

> filter_text in logger.py fails to replace non-ascii text
> --------------------------------------------------------
>
>                 Key: AMBARI-14823
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14823
>             Project: Ambari
>          Issue Type: Bug
>         Environment: Ambari 2.2.0, HDP 2.3.4, LANG=ja_JP.UTF-8
>            Reporter: Akira AJISAKA
>            Assignee: Akira AJISAKA
>              Labels: i18n
>         Attachments: AMBARI-14823.patch
>
>
> If the error message includes non-ascii string, filter_text fails.
> {noformat}
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py",
line 245, in <module>
>     HiveMetastore().execute()
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 219, in execute
>     method(env)
>   File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py",
line 60, in start
>     hive_service('metastore', action='start', upgrade_type=upgrade_type)
>   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/HIVE/0.12.0.2.0/package/scripts/hive_service.py",
line 68, in hive_service
>     pid = get_user_call_output.get_user_call_output(format("cat {pid_file}"), user=params.hive_user,
is_checked_call=False)[1]
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/get_user_call_output.py",
line 58, in get_user_call_output
>     err_msg = Logger.filter_text(("Execution of '%s' returned %d. %s") % (command_string,
code, all_output))
>   File "/usr/lib/python2.6/site-packages/resource_management/core/logger.py", line 98,
in filter_text
>     text.replace(unprotected_string, protected_string)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 117: ordinal not
in range(128)
> {noformat}



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

Mime
View raw message