Created on 09-07-201611:00 PM - edited 08-17-201910:18 AM
Ranger installation is not as simple as Adding Service on Ambari.
Ranger also requires DB and Solr for audit.
In this tutorial we will go through installing Ranger or default postgres DB installed during Ambari Server installation.
If you did a vanilla Ambari-server Install (HDP 2.4) you should have postgres running.
Verify Default Post gresql running on Ambari-Server
On the Ambari-Server if you run "ps -eaf | grep ambari | grep postgres" you should be able to verify postgres db running.
We can see the process id is 9595. Running "netstat -anp | grep 9595" gives you the port number postgres DB is running on. We can try connecting using psql command. In our case it is running on default installation port 5432.
Add Allow Access details for Ranger users: change listen_addresses='localhost' to listen_addresses='*' ('*' = any) to listen from all IPs in postgresql.conf. (You can find files by find ~name postgresql.conf)
ake the following changes to the Ranger db user and Ranger audit db user in the pg_hba.conf file. after editing the pg_hba.conf file, run the following command to restart the PostgreSQL database.
Below are my configuration screen captures(note I changed the user from ranger_admin to ranger_dba)