Configuring the server work directory path for a Ranger service

A Ranger Administrator user can configure the server work directory path.

In versions prior to 7.1.7 (SP1) the server work directory path was hard-coded. A Ranger Admin user can now configure the Tomcat server directory for Ranger Admin, Ranger KMS, Ranger RMS and Ranger RAZ.

  1. From Cloudera Manager > <Service_Name> > Configuration.
  2. In Search, type <service_string>.tomcat.work.dir .
    This is the Ranger Service Work Directory name.
    Table 1. Ranger Service Work Directory Names
    Ranger Service Work Directory Name
    Ranger Admin, KMS ranger.tomcat.work.dir
    Ranger RMS ranger-rms.tomcat.work.dir
    Ranger Raz ranger.raz.tomcat.work.dir
  3. Edit the path variable displayed for the Server Default Group.
  4. Click Save Changes (CTRL+S).
  5. Restart the Ranger service.
    For Ranger Admin and Ranger KMS:
    1. Go to Cloudera Manager > Ranger > Configuration.
    2. In Search, type ranger.tomcat.work.dir .
    3. In Ranger Admin Default Group, replace /var/lib/ranger/admin/work with a custom path.
      Figure 1. Editing the Ranger Admin Tomcat Server Work Directory Path
      Editing the Ranger Admin Tomcat Server Work Directory Path
    4. Save Changes (CTRL+S).
    5. Restart the Ranger service.