Installing Ranger through Ambari

This topic lists the steps to install Ranger through Ambari.

  1. Log in to Ambari UI.
  2. Add the Ranger service. Click Ambari dashboard > Actions > Add Service.
    Figure 1. Ambari dashboard
    add service
  3. On the Choose Services page, select Ranger and Ranger KMS.
    Ranger requirements
  4. Customize the services. In the Ranger Admin dashboard, configure the following:
    • Under “DB Flavor”, select MYSQL.
    • For the Ranger DB host, the host name must be the location of MYSQL.
    • For Ranger DB username, set the value to rangeradmin.
    • For Ranger DB password, set the value to rangeradmin.
      Ranger admin
    • For the Database Administrator (DBA) username, set the value to root.
    • For the Database Administrator (DBA) password, set the value to password for root user.
    • Click on the Test Connection button and ensure that the connection result is OK.
      DBA username
    • In ADVANCED tab set password for:
      1. Ranger Usersync user's password
      2. Ranger Tagsync user's password
      3. Ranger KMS keyadmin user's password
        Ranger settings
    • Provide password for 'Advanced ranger-env' tab for 'Ranger Admin user's password'
      Advanced ranger-env
    • In the Ranger Audit tab, ensure that the Audit to Solr option is disabled.
      Audit to SOLR
  5. Customize the services, In the 'RANGER KMS'
    1. Under “DB Flavor”, select MYSQL.
    2. For the 'Ranger KMS DB host', the hostname must be the location of MYSQL.
    3. For Ranger KMS DB username, set the value to rangerkms.
    4. For Ranger KMS DB password, set the value to rangerkms.
      Ranger KMS DB
    5. For 'Database Administrator (DBA) password', set the root user password.
    6. For 'KMS master key password' set new password.
      Ranger KMS Root DB
    7. Deploy and complete the installation.

      Assign the Ranger server to be on the same node as the HDFS Transparency NameNode for better performance.

      Select Next > Next > Deploy.