Updated on 2022-12-08 GMT+08:00

Switching Ranger Authentication

Scenarios

By default, the Ranger service is installed and Ranger authentication is enabled for a newly installed cluster in security mode. You can set fine-grained security access policies for accessing component resources through the permission plug-in of the component. If Ranger authentication is not required, you can manually disable Ranger authentication on the service page. After Ranger authentication is disabled, the system continues to perform permission control based on the role model of FusionInsight Manager when accessing component resources.

In a cluster upgraded from an earlier version, Ranger authentication is not used by default when users access component resources. You can manually enable Ranger authentication after installing the Ranger service.

  • In a cluster in security mode, the following components support Ranger authentication: HDFS, Yarn, Kafka, Hive, HBase, Storm, Spark2x, Impala.
  • In a cluster in non-security mode, the Ranger supports permission control on component resources based on OS users. The following components support Ranger authentication: HBase, HDFS, Hive, Spark2x, and Yarn.
  • After Ranger authentication is enabled, all authentication of the component will be managed by Ranger. The permissions set by the original authentication plug-in will become invalid. Exercise caution when performing this operation. You are advised to deploy permissions on Ranger in advance. Please restart the service for the modification to take effect.
  • After Ranger authentication is disabled, all authentication of the component will be managed by the permission plug-in of the component. The permission set on Ranger will become invalid. Exercise caution when performing this operation. You are advised to deploy permissions on Manager in advance. Please restart the service for the modification to take effect.

Enabling Ranger Authentication

  1. Log in to FusionInsight Manager.
  2. Choose Cluster > Services.
  3. Click the specified service name on the service management page.
  4. On the service details page, expand the More drop-down list and select Enable Ranger.
  5. In the displayed dialog box, enter the password of the current login user and click OK.
  6. In the service list, restart the service whose configuration has expired.

Disabling Ranger Authentication

  1. Log in to FusionInsight Manager.
  2. Choose Cluster > Services.
  3. Click the specified service name on the service management page.
  4. On the service details page, expand the More drop-down list and select Disable Ranger.
  5. In the displayed dialog box, enter the password of the current login user and click OK. In the displayed dialog box, click OK.
  6. In the service list, restart the service whose configuration has expired.