ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitalyi Brodetskyi" <vbrodets...@hortonworks.com>
Subject Review Request 25104: When using JDBC URL with connection modifiers in Ambari Hive conf, it fails with 'java.lang.ArrayIndexOutOfBoundsException'
Date Wed, 27 Aug 2014 17:51:37 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25104/
-----------------------------------------------------------

Review request for Ambari and Dmitro Lisnichenko.


Bugs: AMBARI-7042
    https://issues.apache.org/jira/browse/AMBARI-7042


Repository: ambari


Description
-------


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://[host]/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:/[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 ';')


Diffs
-----

  ambari-server/src/main/resources/custom_actions/check_host.py 8e9b222 
  ambari-server/src/main/resources/stacks/HDP/1.3.2/services/HIVE/package/scripts/hive_service.py
8a57b01 
  ambari-server/src/main/resources/stacks/HDP/1.3.2/services/OOZIE/package/scripts/oozie_service.py
2be172b 
  ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_service.py
cb10940 
  ambari-server/src/main/resources/stacks/HDP/2.0.6/services/OOZIE/package/scripts/oozie_service.py
2fafd1f 
  ambari-server/src/test/python/TestCheckHost.py 2f2a54a 
  ambari-server/src/test/python/TestResourceFilesKeeper.py 84b206d 
  ambari-server/src/test/python/stacks/1.3.2/HIVE/test_hive_metastore.py fc8392d 
  ambari-server/src/test/python/stacks/1.3.2/HIVE/test_hive_server.py a92df36 
  ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py a56c26b 
  ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py 0350589 
  ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py aba747c 
  ambari-server/src/test/resources/TestAmbaryServer.samples/dummy_stack/HIVE/package/scripts/hive_service.py
e8d4e5c 

Diff: https://reviews.apache.org/r/25104/diff/


Testing
-------

[INFO] 
[INFO] --- apache-rat-plugin:0.10:check (default) @ ambari-groovy-shell ---
[INFO] 51 implicit excludes (use -debug for more details).
[INFO] Exclude: src/main/resources/elephant.txt
[INFO] Exclude: src/test/resources/2columns
[INFO] Exclude: src/test/resources/3columns
[INFO] Exclude: src/test/resources/testBlueprint.json
[INFO] 31 resources included (use -debug for more details)
[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 approved: 31 licence.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Main ....................................... SUCCESS [6.749s]
[INFO] Apache Ambari Project POM ......................... SUCCESS [0.464s]
[INFO] Ambari Web ........................................ SUCCESS [54.173s]
[INFO] Ambari Views ...................................... SUCCESS [4.547s]
[INFO] Ambari Admin View ................................. SUCCESS [20.399s]
[INFO] Ambari Server ..................................... SUCCESS [28:03.505s]
[INFO] Ambari Agent ...................................... SUCCESS [32.719s]
[INFO] Ambari Client ..................................... SUCCESS [0.123s]
[INFO] Ambari Python Client .............................. SUCCESS [0.707s]
[INFO] Ambari Groovy Client .............................. SUCCESS [10.775s]
[INFO] Ambari Shell ...................................... SUCCESS [0.099s]
[INFO] Ambari Python Shell ............................... SUCCESS [0.143s]
[INFO] Ambari Groovy Shell ............................... SUCCESS [5.820s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30:21.542s
[INFO] Finished at: Wed Aug 27 20:43:22 FET 2014
[INFO] Final Memory: 42M/389M
[INFO] ------------------------------------------------------------------------


Thanks,

Vitalyi Brodetskyi


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message