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 6EB07115E0 for ; Wed, 27 Aug 2014 17:52:05 +0000 (UTC) Received: (qmail 3903 invoked by uid 500); 27 Aug 2014 17:51:58 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 3885 invoked by uid 500); 27 Aug 2014 17:51:58 -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 3834 invoked by uid 99); 27 Aug 2014 17:51:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2014 17:51:58 +0000 Date: Wed, 27 Aug 2014 17:51:58 +0000 (UTC) From: "Vitaly Brodetskyi (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-7042) When using JDBC URL with connection modifiers in Ambari Hive conf, it fails with 'java.lang.ArrayIndexOutOfBoundsException' 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-7042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vitaly Brodetskyi updated AMBARI-7042: -------------------------------------- Description: PROBLEM: When changing the following configuration in Ambari for Hive, it fails with the error below javax.jdo.option.ConnectionURL jdbc:postgresql://dw-prd-hdp-gtwy-st001.va.neustar.com/hive?ssl=true;sslmode=verify-full Fail: Execution of '/usr/java/default/bin/java -cp /usr/lib/ambari-agent/DBConnectionVerification.jar:/usr/share/java/postgresql-jdbc.jar org.apache.ambari.server.DBConnectionVerification jdbc:postgresql:/[host]>/hive?ssl=true;sslmode=verify-full sc_hive [password] org.postgresql.Driver' returned 127. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.ambari.server.DBConnectionVerification.main(DBConnectionVerification.java:26) /bin/bash: sc_hive: command not found WORKAROUND: Workaround: (escape ';') was: PROBLEM: When changing the following configuration in Ambari for Hive, it fails with the error below javax.jdo.option.ConnectionURL jdbc:postgresql://dw-prd-hdp-gtwy-st001.va.neustar.com/hive?ssl=true;sslmode=verify-full Fail: Execution of '/usr/java/default/bin/java -cp /usr/lib/ambari-agent/DBConnectionVerification.jar:/usr/share/java/postgresql-jdbc.jar org.apache.ambari.server.DBConnectionVerification jdbc:postgresql://dw-prd-hdp-gtwy-st001.va.neustar.com/hive?ssl=true;sslmode=verify-full sc_hive [password] org.postgresql.Driver' returned 127. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.ambari.server.DBConnectionVerification.main(DBConnectionVerification.java:26) /bin/bash: sc_hive: command not found WORKAROUND: Workaround: (escape ';') > When using JDBC URL with connection modifiers in Ambari Hive conf, it fails with 'java.lang.ArrayIndexOutOfBoundsException' > --------------------------------------------------------------------------------------------------------------------------- > > Key: AMBARI-7042 > URL: https://issues.apache.org/jira/browse/AMBARI-7042 > Project: Ambari > Issue Type: Bug > Components: agent > Affects Versions: 1.6.0 > Reporter: Vitaly Brodetskyi > Assignee: Vitaly Brodetskyi > Fix For: 1.7.0 > > Attachments: AMBARI-7042.patch > > > PROBLEM: > When changing the following configuration in Ambari for Hive, it fails with the error below > > javax.jdo.option.ConnectionURL > jdbc:postgresql://dw-prd-hdp-gtwy-st001.va.neustar.com/hive?ssl=true;sslmode=verify-full > > Fail: Execution of '/usr/java/default/bin/java -cp /usr/lib/ambari-agent/DBConnectionVerification.jar:/usr/share/java/postgresql-jdbc.jar org.apache.ambari.server.DBConnectionVerification jdbc:postgresql:/[host]>/hive?ssl=true;sslmode=verify-full sc_hive [password] org.postgresql.Driver' returned 127. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 > at org.apache.ambari.server.DBConnectionVerification.main(DBConnectionVerification.java:26) > /bin/bash: sc_hive: command not found > WORKAROUND: > Workaround: (escape ';') -- This message was sent by Atlassian JIRA (v6.2#6252)