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

Install and Enable Ranger HDFS Plug-in

  1. Extract your build at the appropriate place.

    Copy ranger-<version>-SNAPSHOT-hdfs-plugin.tar.gz to NameNode_host in directory /usr/hdp/<hdp-version>/.

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

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

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

  5. Edit the file.

    Enter the appropriate values for each of the following properties:

    Table 5.14. Property Values


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

  6. Enable the HDFS plug-in:

    export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64
  7. Stop and start the namenode:

    su hdfs -c "/usr/hdp/current/hadoop-client/sbin/ stop namenode"
    su hdfs -c "/usr/hdp/current/hadoop-client/sbin/ start namenode"
  8. 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:

    • or policy.grantrevoke.auth.users


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