Created on 01-17-2022 04:41 AM - edited 01-17-2022 04:42 AM
I need to connect to my exadata using this kind of JDBC uri in order to provide HA at database level:
I managed with some workaounds to use this kind of URI in all my services, including Hue, but Im not able to do it despite I managed to make cloudera manager construct correctly the jdbc using the string after the @ in the "com.cloudera.cmf.db.host" because it have some hostname verification that tries to resolve via DNS the hostname.
What would be the proper way to configure this or use a custom jdbc uri? I would like to have in Cloudera manager this kind of automatic failover as I had with ambari in HDP.
Thank you in advance.
Cloudera expects HA solutions for RDBMS to be transparent to Cloudera software, and therefore are not supported and debugged by Cloudera.
Having said that you can try to modify the /etc/cloudera-scm-server/db.properties with the URL in below format and test it out.
com.cloudera.cmf.db.type=oracle com.cloudera.cmf.orm.hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver com.cloudera.cmf.orm.hibernate.connection.url=jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=off)(FAILOVER=on) / (CONNECT_TIMEOUT=5)(TRANSPORT_CONNECT_TIMEOUT=3)(RETRY_COUNT=3)(ADDRESS=(PROTOCOL=TCP)(HOST=hostname1)(PORT=1521)) / (ADDRESS=(PROTOCOL=TCP)(HOST=hostname2)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=<Oracle-SID>))) com.cloudera.cmf.orm.hibernate.connection.username=<CM-Oracle-user> com.cloudera.cmf.orm.hibernate.connection.password=<password>
I suggest to check with your DB vendor to validate the jdbc URL if this still fails.
Hope this helps,
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
@Jua, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.