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

Ambari loads ambari.properties using ISO 8859-1 encoding

    XMLWordPrintableJSON

Details

    Description

      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:

      1. Install and setup Ambari Server
      2. Update ambari.properties changing server.jdbc.user.passwd to /etc/ambari-server/conf/password.őőő
      3. mv -iv /etc/ambari-server/conf/password.dat /etc/ambari-server/conf/password.őőő
      4. Try to start Ambari Server

      Result:

      ...
      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.
      
      /var/log/ambari-server/ambari-server-check-database.log
      ...
      FileNotFoundException: File '/etc/ambari-server/conf/password.Å‘Å‘Å‘' does not exist
      

      Attachments

        1. AMBARI-22771.trunk.001.patch
          3 kB
          Attila Doroszlai

        Activity

          People

            adoroszlai Attila Doroszlai
            adoroszlai Attila Doroszlai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h