How to configure Ranger plugins, when configuring non-Ambari Ranger SSL using public
CA certificates.
This section shows how to configure the non-Ambari Ranger HDFS plugin for SSL. You can
use the same procedure for other Ranger components.
- Stop the NameNode:
su -l hdfs -c
"/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh stop namenode"
. - Open the HDFS
install.properties
file in a text editor: vi
/usr/hdp/<version>
/ranger-hdfs-plugin/install.properties
. - Update
install.properties
as follows:
- See if
JAVA_HOME
is available: echo $JAVA_HOME
. - If
JAVA_HOME
is not available , use the following command to set
JAVA_HOME
(Note that Ranger requires java 1.8): export
JAVA_HOME=<path for java 1.8>
. - Run the following commands to switch to the HDFS plugin install directory and run the install
agent to update the plugin with the new configuration settings.
cd /usr/hdp/<version>/ranger-hdfs-plugin/
./enable-hdfs-plugin.sh
-
Log into the Ranger Policy Manager UI as the admin user. Click the Edit
button of your repository (in this case, hadoopdev) and provide the CN name of the
keystore as the value for Common Name For Certificate, then save your changes.
- Start the NameNode:
su -l hdfs -c
"/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh start namenode"
. - In the Policy Manager UI, select Audit > Plugins. You should see an entry for
your repo name with HTTP Response Code 200.