Command Line Installation
Also available as:
PDF
loading table of contents...

Install Ranger Admin

Follow these steps to install Ranger Admin:

  1. Untar the ranger-<version>-admin.tar.gz file:

     tar zxf ranger-<version>-admin.tar.gz
  2. Change directory to ranger-<version>-admin.

    cd ranger-<version>-admin
  3. Edit the install.properties file.

    Enter the appropriate values for each of the following properties:

    Table 6.10. install.properties Property Values

    PropertyValue
    db_root_use 
    db_root_password 
    db_host 
    db_name 
    db_user 
    db_password 
    policymgr_external_urlhttp://<FQDN_OF_Ranger_Admin_Cluster>:6080
    authentication_methodUNIX, LDAP, or AD
    spnego_principalHTTP/<FQDN_OF_Ranger_Admin_Cluster>@<REALM>
    spnego_keytab<HTTP keytab path>
    token_value30
    cookie_domain<FQDN_OF_Ranger_Admin_Cluster>
    cookie_path/
    admin_principalrangeradmin/<FQDN_OF_Ranger_Admin_Cluster>@<REALM>
    admin_keytab<rangeradmin keytab path>
    lookup_principalrangerlookup/<FQDN_OF_Ranger_Admin_Cluster>@<REALM>
    lookup_keytab<rangerlookup_keytab_path>
    hadoop_conf/etc/hadoop/conf

    [Note]Note

    If the Kerberos server and admin are on different hosts, copy the keytab to admin host and assign permission to user ranger:

    • scp the rangeradmin keytab file to the respective path of another host.

    • chown ranger <rangeradmin_keytab_path>

    • chmod 400 <rangeradmin_keytab_path>

  4. Run setup.

    ./setup.sh
  5. Start the Ranger admin server.

    ./ranger-admin-services.sh start