Installing Sentry
You can install Sentry using the MapR installer or with manual steps.
Install Sentry with the MapR Installer
Procedure
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
Prerequisites
mapr-sentry
package, set the following
environment variables:About this task
root
or using
sudo
.Procedure
-
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
-
Update the list of available packages:
- On Ubuntu:
apt-get update
- On RedHat/CentOS:
yum update
- On Ubuntu:
-
On each planned Sentry node, install
mapr-sentry
:- On Ubuntu:
apt-get install mapr-sentry
- On RedHat/CentOS:
yum install mapr-sentry
- On Ubuntu:
-
Set the variable
<SENTRY_HOME>
to/opt/mapr/sentry/sentry-<version>