Help Center/ MapReduce Service/ Troubleshooting/ Cluster Management/ Failed to Configure Cross-Cluster Mutual Trust for MRS
Updated on 2026-10-21 GMT+08:00

Failed to Configure Cross-Cluster Mutual Trust for MRS

Symptom

Cross-cluster mutual trust fails between two clusters of MRS 1.8.2 or earlier and MRS 1.8.2 to 2.x.

Cause Analysis

After cross-cluster mutual trust is configured, users krbtgt/Local cluster domain name@External cluster domain name and krbtgt/External cluster domain name@Local cluster domain name are added to both clusters. The default passwords for the users of the two clusters are different. As a result, cross-cluster mutual trust fails to be configured.

Procedure

  • Scenario without mutual trust being configured:
    1. Before configuring mutual trust, log in to the Master node of the MRS 1.8.2 to 2.x cluster.
    2. Change the value of local cross_realm_account_pwd="${DEFAULT_CROSS_REALM_PWD}" in the add_cross_realm_princ method of the /opt/Bigdata/om-0.0.1/sbin/addRealm.sh script on all Master nodes to local cross_realm_account_pwd="${DEFAULT_PWD}" (in line 1001 of the script).

      Perform steps 1 to 2 on all Master nodes in the cluster of MRS 1.8.2~2.x.

    3. Then, configure cross-cluster mutual trust by referring to Configuring Cross-Cluster Mutual Trust Relationships.
    4. Check whether the mutual trust relationship is established.
      • If yes, the configuration is complete.
      • If the relationship fails to be established, refresh the client configuration and check whether the trust relationship is established. If the problem persists, contact O&M personnel.
  • Scenario with mutual trust being configured
    1. Log in to the Master node of the MRS 1.8.2 to 2.x cluster.
    2. Run the following command angd enter the password to log in to the Kerberos client:

      /home/omm/kerberos/bin/kadmin -p kadmin/admin

    3. Run the listprincs command and press Enter to query user information.

    4. Run the delprinc command to delete users krbtgt/Local cluster domain name@External cluster domain name and krbtgt/External cluster domain name@Local cluster domain name.

    5. Run the quit command to exit the Kerberos client.
    6. Change the value of local cross_realm_account_pwd="${DEFAULT_CROSS_REALM_PWD}" in the add_cross_realm_princ method of the /opt/Bigdata/om-0.0.1/sbin/addRealm.sh script on the Master nodes to local cross_realm_account_pwd="${DEFAULT_PWD}" (in line 1001 of the script).
    7. Log in to MRS Manager, and choose Services.
    8. Click More and select Synchronize Configuration.
    9. In the dialog box displayed, select Restart the service or instance whose configuration has expired and click OK.

      During configuration synchronization, the addRealm.sh script is invoked to add the krbtgt user.

      Perform steps 1 to 9 on all Master nodes in the cluster of MRS 1.8.2~2.x.

    10. Check whether the mutual trust is established. If it still fails, contact O&M personnel.