cluster gateway delete

Deletes the list of data-fabric gateways from a source data-fabric cluster.

Source data-fabric clusters can use such lists to locate the gateways that enable replication of table data to a particular data-fabric cluster or indexing of table data in a particular Elasticsearch cluster. You create lists of gateways by running the cluster gateway set command.

There are three methods of specifying the location of gateways to a data-fabric cluster that is a source for table replication or indexing in Elasticsearch. If a source data-fabric cluster relies on DNS records to find out where gateways are located, or the cluster relies on the mapr-clusters.conf file to locate gateways, there is no list for the cluster gateway delete command to delete.

NOTE Deleting a list of gateways with the maprcli cluster gateway delete command does not uninstall the listed gateways from the data-fabric cluster where they are located.

Syntax

CLI
maprcli cluster gateway delete
    [ -cluster <cluster on which command needs to be run> ]
     -dstcluster <cluster name>
REST
Request Type DELETE
Request URL
http[s]://<host>:<port>/rest/cluster/gateway/delete?<parameters>

Parameters

Parameter Description
cluster (Optional) If you are not on the source cluster, provide the name of the source cluster on which this command should be run.
dstcluster

(Required) The name of the cluster on 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.

Example

Deletes a list of gateways that is stored on a source data-fabric cluster. The gateways that are being used for table replication are located in the destination data-fabric cluster newyork.

CLI
maprcli cluster gateway delete -dstcluster newyork
REST
curl -X DELETE -u <username> https://abc.sj.us:8443/rest/cluster/gateway/delete?dstcluster=newyork