Configuring Ranger

Describes how to set up Ranger services and run the configuration script.

Use these steps:
  1. Set up Ranger services:
    1. In the install.properties file in the Ranger Admin home directory (/opt/mapr/ranger/ranger-<version>/ranger-admin/install.properties), modify the properties using one of the following options:
      • If you have skipped Step 1. and 2. in Installing Ranger procedure, modify the following properties:
        db_root_user=root 
        db_root_password=<root_db_password> 
        
        db_name=<created_db_name> 
        db_user=<created_db_user> 
        db_password=<created_db> 
        
        rangerAdmin_password=<min_8_char_with_numeric_and_min_one_capital> 
        rangerTagsync_password=<min_8_char_with_numeric_and_min_one_capital> 
        rangerUsersync_password=<min_8_char_with_numeric_and_min_one_capital> 
        keyadmin_password=<min_8_char_with_numeric_and_min_one_capital>
      • If you have performed Step 1. and 2. in Installing Ranger procedure, modify the following properties:
        db_name=<created_db_name> 
        db_user=<created_db_user> 
        db_password=<created_db> 
        
        rangerAdmin_password=<min_8_char_with_numeric_and_min_one_capital> 
        rangerTagsync_password=<min_8_char_with_numeric_and_min_one_capital> 
        rangerUsersync_password=<min_8_char_with_numeric_and_min_one_capital> 
        keyadmin_password=<min_8_char_with_numeric_and_min_one_capital>
      Later you will use the keyadmin_password to log on to the Ranger web UI.
    2. Run the setup script:
      sudo /opt/mapr/ranger/ranger-<version>/ranger-admin/setup.sh
      The /ranger-admin/setup.sh script copies some basic ugsync-related properties to the ugsync install.properties and then runs the ugsync script. However, to custom configure ugsync, you must edit /opt/mapr/ranger/ranger-2.3.0/ranger-usersync/install.properties and then run sudo /opt/mapr/ranger/ranger-2.3.0/ranger-usersync/setup.sh.
  2. Run the configuration script as root. Running configure.sh restarts the Ranger Admin and Ranger UserSync services:
    /opt/mapr/server/configure.sh -R