If two clusters, both with Kerberos authentication enabled, need to access the resources of each other, the administrator must configure the mutual trust relationships between the clusters.
If no trust relationship is configured, resources of a cluster are available only for users in the cluster. MRS automatically assigns a unique domain name for each cluster to define the scope of resources for users.
Impact on the System
- After cross-cluster mutual trust is configured, resources of a cluster become available for users in the other cluster. User permission in the clusters must be regularly checked based on service and security requirements.
- After cross-cluster mutual trust is configured, the two clusters must be restarted and are unavailable during restart.
- After cross-cluster mutual trust is configured, internal users krbtgt/Local cluster domain name@External cluster domain name and krbtgt/External cluster domain name@Local cluster domain name are added to the two clusters. The internal users cannot be deleted. The default password of the users is Admin@123.
- After cross-cluster mutual trust is configured, the client must be re-installed.
- Kerberos authentication is enabled for both clusters. For example, two analysis clusters with Kerberos authentication enabled are created.
- Both clusters are in the same VPC and subnet.
- On the MRS management console, query all security groups of the two clusters.
Each cluster has two security groups, namely the security group of the Master node and Core node respectively.
- On the VPC management console, add rules for each security group.
Set Protocol to ANY, Transfer Direction to Inbound, and Source to Security Group. The source is the security group of the peer cluster. Two inbound rules are required.
- Log in to MRS Manager of the two clusters separately. Click Service and check whether the Health Status of all components is Good.
- If yes, go to Step 4.
- If no, contact technical support personnel for troubleshooting.
- Query configuration information.
- On MRS Manager of the two clusters, choose OM IP Address of the two KerberosServer hosts.
- Click Service Configuration. Set Type to All. Choose in the navigation tree on the left. Query the value of kdc_ports. The default value is 21732.
- Click Realm and query the value of default_realm.
- On MRS Manager of either cluster, modify the peer_realms parameter.
Table 1 Parameter description
default_realm of the peer cluster
KDC address of the peer cluster. Format: IP address of a KerberosServer node in the peer cluster:kdc_port
The addresses of the two KerberosServer nodes are separated by a comma. For example, if the IP addresses of the KerberosServer nodes are 10.0.0.1 and 10.0.0.2 respectively, the value of this parameter is 10.0.0.1:21732,10.0.0.2:21732.
- To deploy trust relationships with multiple clusters, click to add items and specify relevant parameters. To delete an item, click .
- A cluster can have trust relationships with a maximum of 16 clusters. By default, no trust relationship exists between different clusters that are trusted by a local cluster.
- Click Save Configuration. In the dialog box that is displayed, select Restart the affected services or instances and click OK.
After Operation succeeded is displayed, click Finish.
- Exit MRS Manager and log in to it again. If the login is successful, the configurations are valid.
- Log in to MRS Manager of the other cluster and repeat Step 5 to Step 7.