Install and Enable Ranger YARN Plug-in
Extract your build at the appropriate place.
Copy
ranger-<version>-SNAPSHOT-yarn-plugin.tar.gz
toActive_Hbasemaster
host in directory/usr/hdp/<hdp-version>/
.Change directory to
/usr/hdp/<hdp-version>
.Untar
ranger-<version>-SNAPSHOT-SNAPSHOT-yarn-plugin.tar.gz
.Change directories to
ranger-<version>-SNAPSHOT-yarn-plugin
.Edit the
install.properties
file.Enter the appropriate values for each of the following properties:
Table 5.17. install.properties Property Values
Property Values POLICY_MGR_URL http://<FQDN_of_ranger_admin_host>:6080 REPOSITORY_NAME yarndev Additionally, for the Audit info, Solr/HDFS options are available.
Enable the YARN plug-in:
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64 ./enable-yarn-plugin.sh
Stop and start the ResourceManager and the NodeManager:
First, stop and start the ResourceManager on all of your ResourceManager hosts:
su yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh stop resourcemanager" su yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh start resourcemanager" ps -ef | grep -i resourcemanager
Next, stop and start the NodeManager on all your NodeManager hosts:
su yarn -c "/usr/hdp/current/hadoop-yarn-nodemanager/sbin/yarn-daemon.sh stop nodemanager" su yarn -c "/usr/hdp/current/hadoop-yarn-nodemanager/sbin/yarn-daemon.sh start nodemanager" ps -ef | grep -i nodemanager
Create the default repo for YARN with proper configuration.
In the custom repo configuration, add the component user to
yarn
for each of the following properties:policy.grantrevoke.auth.users or policy.download.auth.users
tag.download.auth.users
Use the
Audit->plugins
tab to verify that the YARN plug-in is communicating with Ranger admin.