Ranger Ambari Installation
Also available as:
PDF

HDFS

Use the following steps to enable the Ranger HDFS plugin.

  1. Select HDFS from the Services tab in the top menu.

  2. Click the Configs tab, then click the Advanced tab. Scroll down and click to open Advanced ranger-hdfs-plugin-properties.

  3. Select the Enable Ranger for HDFS check box. A Warning pop-up appears. Click Apply to save the property updates.

  4. To save the configuration, click the green Save button on the black menu bar at the top of the page.

  5. A Save Configuration pop-up appears. Type in a note describing the changes you just made, then click Save.

  6. Click OK on the Save Configuration Changes pop-up.

  7. The new plugin properties for HDFS will be displayed.

  8. A Restart Required message will be displayed at the top of the page. Click Restart, then select Restart All Affected to restart the HDFS service and load the new configuration.

  9. Click Confirm Restart All on the confirmation pop-up to confirm the HDFS restart.

  10. After HDFS has restarted, the Ranger plugin for HDFS is enabled.

[Note]Note

In order to access HDFS folders in previous versions of HDP, access permissions also had to be granted in Ranger to the applicable parent folders. As of HDP-2.3, it is no longer required to grant access permissions to the parent folder.

For example, for the folder path ../customer/data/marketing:

  • In previous versions, to grant access to the /customer/data/marketing folder, you were required to grant Execute permission in Ranger for both the /customer and /customer/data folders, along with a Read or Write permission for the /customer/data/marketing folder.

  • As of HDP-2.3, it is no longer necessary to grant Execute permission to the parent folders.

For more details, see RANGER-357.