Install and Enable Ranger HDFS Plug-in
Extract your build at the appropriate place.
Copy
ranger-<version>-SNAPSHOT-hdfs-plugin.tar.gz
to NameNode_host in directory/usr/hdp/<hdp-version>/
.Change directory to
/usr/hdp/<hdp-version>
.Untar
ranger-<version>-SNAPSHOT-SNAPSHOT-hdfs-plugin.tar.gz
.Change directories to
ranger-<version>-SNAPSHOT-hdfs-plugin
.Edit the
install.properties
file.Enter the appropriate values for each of the following properties:
Table 14.14. install.properties Property Values
Property Values POLICY_MGR_URL http://<FQDN_of_ranger_admin_host>:6080 REPOSITORY_NAME hadoopdev Additionally, for the Audit info, Solr/HDFS options are available.
Enable the HDFS plug-in:
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64 ./enable-hdfs-plugin.sh
Stop and start the namenode:
su hdfs -c "/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh stop namenode" su hdfs -c "/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh start namenode"
Create the default repo for HDFS with proper configuration.
In the custom repo configuration, set the component user to
hdfs
for each of the following properties:policy.download.auth.users or policy.grantrevoke.auth.users
tag.download.auth.users
Use the
Audit->plugins
tab to verify that the HDFS plug-in is communicating with Ranger admin.