Updated on 2024-11-29 GMT+08:00

Switching Authentication Based on Users and Roles

Scenario

In security mode, users can switch from Ranger-based authentication to user- and role-based authentication.

Prerequisites

Currently, the Elasticsearch service is in security mode and the authentication mode is based on Ranger.

Procedure

  1. Log in to Manager.
  2. Choose Cluster > Name of the desired cluster > Services > Elasticsearch > More > Disable Ranger.
  3. Enter the password. In the Disable Ranger dialog box that is displayed, read the precautions and click OK. Restart the Elasticsearch service.
  4. After the service is restarted, you need to synchronize the indexes created in Ranger authentication mode to the ZooKeeper. For details, see Synchronizing Index Owner Group.

    Do not switch the authentication mode frequently.