Installing Sentry

You can install Sentry using the MapR installer or with manual steps.

Install Sentry with the MapR Installer

When you install Sentry with the MapR Installer, the MapR Installer performs the steps to install Sentry. As of Sentry 1.6-1602, based on the type of database you select, it may also configure Sentry to use file-based or database storage. See the MapR Installer documentation for instructions on using the MapR Installer.

Install Sentry Using Manual Steps

Before you install the mapr-sentry package, set the following environment variables:
Execute the following commands as root or using sudo.
  1. Set the variable JAVA_HOME. The mapr-sentry package works with JDK versions 1.7 and 1.8. In the following example, java-7-oracle is used:
    # export JAVA_HOME=/usr/lib/jvm/java-7-oracle
  2. Update the list of available packages:
    • On Ubuntu:
      apt-get update
    • On RedHat/CentOS:
      yum update
  3. On each planned Sentry node, install mapr-sentry:
    • On Ubuntu:
      apt-get install mapr-sentry
    • On RedHat/CentOS:
      yum install mapr-sentry
  4. Set the variable <SENTRY_HOME> to /opt/mapr/sentry/sentry-<version>