Security Reference
Also available as:
PDF
loading table of contents...

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.

  1. cd /usr/hdp/current/ranger-admin
  2. export JAVA_HOME=/usr/jdk64/jdk1.8.0_112
  3. Run vi install.properties and 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

    e.g. mysql_core_file=db/mysql/optimized/current/ranger_core_db_mysql.sql

  4. From ranger-admin, run: ./setup.sh
  5. Before running Ranger install via Ambari, install the ranger-admin package from console: yum install ranger_$VERSION-admin.x86_64
  6. dba_script.py -q
  7. python db_setup.py
  8. Via Ambari, run the Ranger install. During installation, turn off Setup Database and Database User and run Test Connection.