Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73C6F18C80 for ; Wed, 25 Nov 2015 11:39:11 +0000 (UTC) Received: (qmail 68011 invoked by uid 500); 25 Nov 2015 11:39:11 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 67960 invoked by uid 500); 25 Nov 2015 11:39:11 -0000 Mailing-List: contact dev-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 dev@ambari.apache.org Received: (qmail 67910 invoked by uid 99); 25 Nov 2015 11:39:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2015 11:39:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 036B62C044E for ; Wed, 25 Nov 2015 11:39:11 +0000 (UTC) Date: Wed, 25 Nov 2015 11:39:11 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-14033) Wrong Audit JDBC URL generated, even though JDBC URL format is overridden by user MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-14033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15026656#comment-15026656 ] Hudson commented on AMBARI-14033: --------------------------------- ABORTED: Integrated in Ambari-trunk-Commit #3908 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3908/]) AMBARI-14033. Wrong Audit JDBC URL generated, even though JDBC URL (gautam: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a1729a3e977a00379fe3ebf788ced391eeb4102e]) * ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/params.py * ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py * ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/params_linux.py * ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py * ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py * ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py * ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/scripts/params.py * ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py * ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/params_linux.py > Wrong Audit JDBC URL generated, even though JDBC URL format is overridden by user > --------------------------------------------------------------------------------- > > Key: AMBARI-14033 > URL: https://issues.apache.org/jira/browse/AMBARI-14033 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.1.3 > Reporter: Gautam Borad > Assignee: Gautam Borad > Fix For: 2.2.0, 2.1.3 > > Attachments: AMBARI-14033.patch > > > *Steps to reproduce:* > -- Install Ranger with Oracle 12C > -- Use SID format for DB host (host:port:SID) e.g. hostname:1521:ORCL > -- Override connect string (jdbc:oracle:thin:@hostname:1521:ORCL - note that there is no //, which was generated by Ambari, but should be removed to get it to work) > -- Complete the install > -- Ranger will work fine, but DB auditing will not work > *Root Cause* > When JDBC string is overridden, ranger-admin-site.xml->ranger.jpa.jdbc.url is properly generated. > But, {{ranger-admin-site.xml->ranger.jpa.audit.jdbc.url}} and {{ranger-\-audit.xml\->xasecure.audit.destination.db.jdbc.url}} are generated wrong. They both refer to {{audit_jdbc_url}} macro, which is apparently calculated incorrectly. > *Workaround* > Manually override ranger.jpa.audit.jdbc.url and xasecure.audit.destination.db.jdbc.url > *Actual solution* > Calculate the variable properly, so that user does not have to enter it again. -- This message was sent by Atlassian JIRA (v6.3.4#6332)