Use Consolidated DB Schema Script to Reduce Ranger Install Time
You can reduce Ranger cluster setup time by setting up the database and Java patches before installing Ranger. This is accomplished by running the consolidated DB schema script.
This is an optional step you can take before running the Ranger install via Ambari to speed up the Ranger install.
vi install.propertiesand edit the following properties:
$DBFLAVOR_core_file=db/$DBFLAVOR/optimized/current/ranger_core_db_$DBFLAVOR.sql db_password=rangeradmin audit_solr_urls=http://localhost:6083/solr/ranger_audits
From ranger-admin, run:
Before running Ranger install via Ambari, install the ranger-admin package from
yum install ranger_$VERSION-admin.x86_64
- Via Ambari, run the Ranger install. During installation, turn off Setup Database and Database User and run Test Connection.