Editing mapr-clusters.conf

Another requirement for mirroring to work between two clusters is that every node in each cluster (the local cluster and the remote cluster) must be able to resolve all nodes in the other cluster. Before you create a mirror volume, edit the mapr-clusters.conf file on each node as shown:
  1. For each node on the source volume's cluster, add a line that contains the mirror cluster's name, followed by a space-separated list of hostnames for its CLDB nodes. For example, if Cluster1 has cldb1-1 and cldb1-2 for its CLDB nodes, and Cluster 2 has cldb2-1 and cldb2-2 for its CLDB nodes, the mapr-clusters.conf file for Cluster1 would have these lines: Cluster1 cldb1-1 cldb1-2 Cluster2 cldb2-1 cldb2-2
    Cluster1 cldb1-1 cldb1-2
    Cluster2 cldb2-1 cldb2-2
  2. For each node on the mirror volume's cluster, add a line that contains the source cluster's name, followed by a space-separated list of hostnames for its CLDB nodes. For this example, the mapr-clusters.conf file for Cluster2 contains these lines: Cluster2 cldb2-1 cldb2-2 Cluster1 cldb1-1 cldb1-2
    Cluster2 cldb2-1 cldb2-2
    Cluster1 cldb1-1 cldb1-2
  3. Set secure=true if both clusters are secure. Set secure=false if both clusters are not secure.
    secure=true|false
    Warning: Mirroring only works between two secure clusters or between two unsecure clusters. Mirroring does not work when one cluster is secure and the other is unsecure.
  4. On each cluster, restart the mapr-webserver service on all nodes where it is running.