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

Solr Multi-System Mutual Trust

Scenario

If systems are configured with mutual trust relationships, Solr in each system can be accessed using client APIs. After specifying the zkHost value of a system, users who only use one of the systems can access Solr in the specified system using CloudSolrClient.

Solr does not support cross-system trust services that are initiated by running the curl command.

Prerequisites

Mutual trust has been configured between every two systems, with the Solr service installed.

Procedure

  1. Configure mutual trust relationships between Solr systems based on the sample client code. Assume that system A and system B are configured with mutual trust relationship. Select a user with Solr user group permissions in system A (or system B) and download the user's keytab and krb5.conf files to the conf directory of the sample code.
  2. Modify the main function of the TestSample class in sample code:

    Figure 1 Example Code

  3. Run the sample code. On the Solr page of system A and system B, the created collection and index data can be viewed.