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.
-
cd /usr/hdp/current/ranger-admin
-
export JAVA_HOME=/usr/jdk64/jdk1.8.0_112
-
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
-
From ranger-admin, run:
./setup.sh
-
Before running Ranger install via Ambari, install the ranger-admin package from
console:
yum install ranger_$VERSION-admin.x86_64
-
dba_script.py -q
-
python db_setup.py
-
Via Ambari, run the Ranger install. During installation, turn off
Setup Database and Database User and run
Test Connection.