Command Line Installation
Also available as:
loading table of contents...

Install and Enable Ranger YARN Plug-in

  1. Extract your build at the appropriate place.

    Copy ranger-<version>-SNAPSHOT-yarn-plugin.tar.gz to Active_Hbasemaster host in directory /usr/hdp/<hdp-version>/.

  2. Change directory to /usr/hdp/<hdp-version>.

  3. Untar ranger-<version>-SNAPSHOT-SNAPSHOT-yarn-plugin.tar.gz.

  4. Change directories to ranger-<version>-SNAPSHOT-yarn-plugin.

  5. Edit the file.

    Enter the appropriate values for each of the following properties:

    Table 14.17. Property Values


    Additionally, for the Audit info, Solr/HDFS options are available.

  6. Enable the YARN plug-in:

    export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
  7. 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/ stop resourcemanager"   
    su yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/ 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/ stop nodemanager"
    su yarn -c "/usr/hdp/current/hadoop-yarn-nodemanager/sbin/ start nodemanager"
    ps -ef | grep -i nodemanager
  8. 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


  9. Use the Audit->plugins tab to verify that the YARN plug-in is communicating with Ranger admin.