After cross-cluster mutual trust is configured, permission must be configured for users in the local cluster, so that the users can access the same resources in the peer cluster as the users in the peer cluster.
The mutual trust relationship has been configured between two clusters (clusters A and B). The clients of the clusters have been updated.
For example, user admin of cluster A has the permission to access and create files in the /tmp directory of cluster A. Then go to Step 4.
For example, if you have updated the client on the Master2 node, log in to the Master2 node to use the client. For details, see Client Management.
hdfs dfs -ls hdfs://192.168.6.159:25000/tmp
In the preceding command, 192.168.6.159 is the IP address of the active NameNode of cluster A; 25000 is the default port for communication between the client and the NameNode.
hdfs dfs -touchz hdfs://192.168.6.159:25000/tmp/mrstest.txt