MapR 5.0 Documentation : 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

The following procedures use the operating system package managers to download and install Sentry from the MapR Repository. For instructions on setting up the ecosystem repository (which includes Sentry), see Preparing Packages and Repositories.

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>.