Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to clear Ambari Agent cache - Ambari not propagating configurations

Highlighted

How to clear Ambari Agent cache - Ambari not propagating configurations

Contributor

I am currently having trouble installing Ranger and my DBA has traced the connection to see if we can figure out the problem. Below is what he found during the trace. The problem with the log is that it is not use the correct name of the database. It is using "jdbc:oracle:thin:@//igrexandc001:1521" but it should be like igrexandc001-scan:1521/IRBIMDEV. When we update in ranger admin page it is not propagating.

DB connection check
started.

WARNING: File
/var/lib/ambari-agent/cache/DBConnectionVerification.jar already exists,
assuming it was downloaded before

WARNING: File
/var/lib/ambari-agent/cache/oracle-jdbc-driver.jar already exists, assuming it
was downloaded before

2016-03-18 09:23:57,027 -
call['/usr/jdk64/jdk1.8.0_60/bin/java -cp
/var/lib/ambari-agent/cache/DBConnectionVerification.jar:/var/lib/ambari-agent/cache/oracle-jdbc-driver.jar
-Djava.library.path=/var/lib/ambari-agent/cache
org.apache.ambari.server.DBConnectionVerification
"jdbc:oracle:thin:@//igrexandc001:1521" "SYS as sysdba"
[PROTECTED] oracle.jdbc.driver.OracleDriver'] {}

2016-03-18 09:23:57,198 -
call returned (1, 'ERROR: Unable to connect to the DB. Please check DB
connection properties.\njava.sql.SQLException: Io exception: Unknown host
specified ') 
2 REPLIES 2

Re: How to clear Ambari Agent cache - Ambari not propagating configurations

Expert Contributor

Just wanted to be sure, did you restart Ranger after saving your changes in Ambari -> Ranger -> Settings?

Re: How to clear Ambari Agent cache - Ambari not propagating configurations

Please check if server is resolving the hostname of database server. And if you changed hostname in configuration of ranger then restart the service of ranger.

Don't have an account?
Coming from Hortonworks? Activate your account here