This is the documentation for Cloudera Enterprise 5.8.x. Documentation for other versions is available at Cloudera Documentation.

Installing and Upgrading Sentry for Policy File Authorization

Sentry stores the configuration as well as privilege policies in files. The sentry-site.xml file contains configuration options such as group association provider, privilege policy file location. The policy file contains the privileges and groups. It has a .ini file format and can be stored on a local file system or HDFS.

Sentry is plugged into Hive as session hooks, which you configure in hive-site.xml. The sentry package must be installed. It contains the required JAR files. You must also configure properties in the Sentry Configuration File.

  Important:

Install the Cloudera yum, zypper/YaST or apt repository before using the following commands. For instructions, see Installing the Latest CDH 5 Release.

Continue reading:

Installing Sentry

Use the following the instructions, depending on your operating system, to install the latest version of Sentry.
  Important: Configuration files
  • If you install a newer version of a package that is already on the system, configuration files that you have modified will remain intact.
  • If you uninstall a package, the package manager renames any configuration files you have modified from <file> to <file>.rpmsave. If you then re-install the package (probably to install a new version) the package manager creates a new <file> with applicable defaults. You are responsible for applying any changes captured in the original configuration file to the new configuration file. In the case of Ubuntu and Debian upgrades, you will be prompted if you have made changes to a file for which there is a new version. For details, see Automatic handling of configuration files by dpkg.
OS Command
RHEL
$ sudo yum install sentry
SLES
$ sudo zypper install sentry
Ubuntu or Debian
$ sudo apt-get update; 
$ sudo apt-get install sentry

Upgrading Sentry

If you are upgrading Sentry from CDH 4 to CDH 5, you must uninstall the old version and install the new version. If you are upgrading from CDH 5.x to the latest CDH release, see Installing Sentry to install the latest version.

Removing the CDH 4 Version of Sentry:
  Note: If you have already performed the steps to uninstall CDH 4 and all components, as described under Upgrading from CDH 4 to CDH 5, you can skip this step and proceed with installing the latest version of Sentry.
OS Command
RHEL
$ sudo yum remove sentry
SLES
$ sudo zypper remove sentry
Ubuntu or Debian
$ sudo apt-get remove sentry
Page generated July 8, 2016.