cluster gateway set

Specifies the locations of the data-fabric gateways that a source data-fabric cluster can use for table replication to a destination data-fabric cluster, or for indexing table data in an Elasticsearch cluster.

In addition to this method, there are two other methods that you can use to specify the locations of gateways that a source data-fabric cluster can use when replicating to a particular data-fabric cluster or when indexing in an Elasticsearch cluster. See Configuring Gateways for Table and Stream Replication for details about them.


/opt/mapr/bin/maprcli cluster gateway set
   [ -cluster <cluster on which command to be run> ]
   -dstcluster <cluster name>
   -gateways <space-separated list of hostnames>   
http[s]://<host>:<port>/rest/cluster/gateway/set?dstcluster=<path>&gateways=<list of gateways>


Parameter Description
cluster If you are not on the source data-fabric cluster, provide the name of that cluster.

The name of the data-fabric cluster in which the gateways are located.

If you are replicating table data to another data-fabric cluster, specify the name of that destination cluster. This destination cluster could be the source cluster if you are performing intra-cluster replication.

If you are indexing table data in an Elasticsearch cluster, specify the name of the source data-fabric cluster because that is where the gateways are located.

gateways A space-delimited list of gateway hostnames or IP addresses. Place double quotation marks around the list of gateways, as in this example: -gateways "gateway1 gateway2"


This example specifies the hostnames of two gateways that are in the data-fabric cluster newyork . This command could be used in any of these situations:

  • The cluster newyork is the destination cluster for table replication from the source data-fabric cluster.
  • The cluster newyork is both a source and destination cluster for intra-cluster table replication.
  • The cluster newyork is a source data-fabric cluster that contains tables being indexed in one or more Elasticsearch clusters.
/opt/mapr/bin/maprcli cluster gateway set -dstcluster newyork -gateways ""