From issues-return-65433-archive-asf-public=cust-asf.ponee.io@ambari.apache.org Fri Jan 12 13:52:06 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 64925180787 for ; Fri, 12 Jan 2018 13:52:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4F1FA160C30; Fri, 12 Jan 2018 12:52:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 94483160C42 for ; Fri, 12 Jan 2018 13:52:05 +0100 (CET) Received: (qmail 14066 invoked by uid 500); 12 Jan 2018 12:52:04 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 14057 invoked by uid 99); 12 Jan 2018 12:52:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2018 12:52:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 56B2AC4AF2 for ; Fri, 12 Jan 2018 12:52:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Gp8ezN7uxk7j for ; Fri, 12 Jan 2018 12:52:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5D4C45F298 for ; Fri, 12 Jan 2018 12:52:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C9F60E04F4 for ; Fri, 12 Jan 2018 12:52:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6A07D25BDA for ; Fri, 12 Jan 2018 12:52:00 +0000 (UTC) Date: Fri, 12 Jan 2018 12:52:00 +0000 (UTC) From: "Doroszlai, Attila (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-22771) Ambari loads ambari.properties using ISO 8859-1 encoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-22771?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doroszlai, Attila updated AMBARI-22771: --------------------------------------- Description:=20 Ambari Server loads {{ambari.properties}} using {{Properties.load(InputStre= am)}}, which [uses ISO 8859-1 character encoding|https://docs.oracle.com/ja= vase/8/docs/api/java/util/Properties.html#load-java.io.InputStream-]. This= causes a problem for non-Latin1 characters that can occur in several prope= rties, eg. in any directory or file name. STR: # Install and setup Ambari Server # Update {{ambari.properties}} changing {{server.jdbc.user.passwd}} to {{/e= tc/ambari-server/conf/password.=C5=91=C5=91=C5=91}} # {{mv -iv /etc/ambari-server/conf/password.dat /etc/ambari-server/conf/pas= sword.=C5=91=C5=91=C5=91}} # Try to start Ambari Server Result: {noformat} ... ERROR: Exiting with exit code 1. REASON: Database check failed to complete. Please check /var/log/ambari-ser= ver/ambari-server.log and /var/log/ambari-server/ambari-server-check-databa= se.log for more information. {noformat} {noformat:title=3D/var/log/ambari-server/ambari-server-check-database.log} ... FileNotFoundException: File '/etc/ambari-server/conf/password.=C3=85=C2=91= =C3=85=C2=91=C3=85=C2=91' does not exist {noformat} was: Ambari Server loads {{ambari.properties}} using {{Properties.load(InputStre= am)}}, which uses ISO 8859-1 character encoding. This causes a problem for= non-Latin1 characters that can occur in several properties, eg. in any dir= ectory or file name. STR: # Install and setup Ambari Server # Update {{ambari.properties}} changing {{server.jdbc.user.passwd}} to {{/e= tc/ambari-server/conf/password.=C5=91=C5=91=C5=91}} # {{mv -iv /etc/ambari-server/conf/password.dat /etc/ambari-server/conf/pas= sword.=C5=91=C5=91=C5=91}} # Try to start Ambari Server Result: {noformat} ... ERROR: Exiting with exit code 1. REASON: Database check failed to complete. Please check /var/log/ambari-ser= ver/ambari-server.log and /var/log/ambari-server/ambari-server-check-databa= se.log for more information. {noformat} {noformat:title=3D/var/log/ambari-server/ambari-server-check-database.log} ... FileNotFoundException: File '/etc/ambari-server/conf/password.=C3=85=C2=91= =C3=85=C2=91=C3=85=C2=91' does not exist {noformat} > 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 > Fix For: 3.0.0, 2.6.2 > > > Ambari Server loads {{ambari.properties}} using {{Properties.load(InputSt= ream)}}, which [uses ISO 8859-1 character encoding|https://docs.oracle.com/= javase/8/docs/api/java/util/Properties.html#load-java.io.InputStream-]. Th= is causes a problem for non-Latin1 characters that can occur in several pro= perties, 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.=C5=91=C5=91=C5=91}} > # {{mv -iv /etc/ambari-server/conf/password.dat /etc/ambari-server/conf/p= assword.=C5=91=C5=91=C5=91}} > # Try to start Ambari Server > Result: > {noformat} > ... > ERROR: Exiting with exit code 1. > REASON: Database check failed to complete. Please check /var/log/ambari-s= erver/ambari-server.log and /var/log/ambari-server/ambari-server-check-data= base.log for more information. > {noformat} > {noformat:title=3D/var/log/ambari-server/ambari-server-check-database.log= } > ... > FileNotFoundException: File '/etc/ambari-server/conf/password.=C3=85=C2= =91=C3=85=C2=91=C3=85=C2=91' does not exist > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)