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