Apache Ranger

Apache Ranger™ is a framework to enable, monitor and manage comprehensive data security across the Hadoop platform. Apache Ranger has supported Ozone authentication since version 2.0. However, due to some bugs in 2.0, Apache Ranger 2.1 and later versions are recommended.

To use Apache Ranger, you must have Apache Ranger installed in your Hadoop Cluster. For installation instructions of Apache Ranger, Please take a look at the Apache Ranger website.

If you have a working Apache Ranger installation that is aware of Ozone, then configuring Ozone to work with Apache Ranger is trivial. You have to enable the ACLs support and set the acl authorizer class inside Ozone to be Ranger authorizer. Please add the following properties to the ozone-site.xml.

PropertyValue
ozone.acl.enabledtrue
ozone.acl.authorizer.classorg.apache.ranger.authorization.ozone.authorizer.RangerOzoneAuthorizer

To use the RangerOzoneAuthorizer, you also need to add the following environment variables to ozone-env.sh:

  1. export OZONE_MANAGER_CLASSPATH="${OZONE_HOME}/share/ozone/lib/libext/*"
  • The location of the ranger-ozone-plugin jars depends on where the Ranger Plugin is installed.
  • If the ranger-ozone-plugin jars is installed on another node, copy it to the Ozone installation directory.

The Ranger permissions corresponding to the Ozone operations are as follows:

operation&permissionVolume permissionBucket permissionKey permission
Create volumeCREATE
List volumeLIST
Get volume InfoREAD
Delete volumeDELETE
Create bucketREADCREATE
List bucketLIST, READ
Get bucket infoREADREAD
Delete bucketREADDELETE
List keyREADLIST, READ
Write keyREADREADCREATE, WRITE
Read keyREADREADREAD