Vitaly Brodetskyi created AMBARI-7042:
-----------------------------------------

             Summary: 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


PROBLEM:
When changing the following configuration in Ambari for Hive, it fails with the 
error below

<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:postgresql://dw-prd-hdp-gtwy-st001.va.neustar.com/hive?ssl=true;sslmode=verify-full</value>
</property>

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 ';') 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to