You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Doroszlai, Attila (JIRA)" <ji...@apache.org> on 2018/01/12 11:17:00 UTC

[jira] [Created] (AMBARI-22771) Ambari loads ambari.properties using ISO 8859-1 encoding

Doroszlai, Attila created AMBARI-22771:
------------------------------------------

             Summary: Ambari loads ambari.properties using ISO 8859-1 encoding
                 Key: AMBARI-22771
                 URL: https://issues.apache.org/jira/browse/AMBARI-22771
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
            Reporter: Doroszlai, Attila
            Assignee: Doroszlai, Attila


Ambari Server loads {{ambari.properties}} using {{Properties.load(InputStream)}}, which uses ISO 8859-1 character encoding.  This causes a problem for non-Latin1 characters that can occur in several properties, eg. in any directory or file name.

STR:

# Install and setup Ambari Server
# Update {{ambari.properties}} changing {{server.jdbc.user.passwd}} to {{/etc/ambari-server/conf/password.őőő}}
# {{mv -iv /etc/ambari-server/conf/password.dat /etc/ambari-server/conf/password.őőő}}
# Try to start Ambari Server

Result:

{noformat}
...
ERROR: Exiting with exit code 1.
REASON: Database check failed to complete. Please check /var/log/ambari-server/ambari-server.log and /var/log/ambari-server/ambari-server-check-database.log for more information.
{noformat}

{noformat:title=/var/log/ambari-server/ambari-server-check-database.log}
...
FileNotFoundException: File '/etc/ambari-server/conf/password.őőő' does not exist
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)