Un-registers the specified table or index as a replica. After running this command, the specified table or index is no longer a replica of the source table and will no longer receive updates from the source table.

After running this command to un-register a table as a replica, you can run the table upstream remove command to remove the association between the source table and the replica table. 

Syntax

CLI

maprcli table replica remove

-path table path
-replica replica table path

REST
http[s]://<host>:<port>/rest/table/replica/remove?path=<path>&replica=<path>

Parameter

ParameterDescription
path

The path to the source table that is being replicated.

  • For a path on the local cluster, start the path at the volume mount point. For example, for a table named testsrc under a volume with a mount point at /volume1, specify the following path: /volume1/testsrc

  • For a path on a remote cluster, you must also specify the cluster name in the path. For example, for a table named customersrc under volume1 in the sanfrancisco cluster, specify the following path:/mapr/sanfrancisco/volume1/customersrc
replica

The path to the replica.

  • For a table on the local cluster, start the path at the volume mount point. For example, for a table named testdst under a volume with a mount point at /volume1, specify the following path: /volume1/testdst
  • For a table on another cluster, you must also specify the cluster name in the path. For example, for a table named customerdst under volume1 in the sanfrancisco cluster, specify the following path: /mapr/sanfrancisco/volume1/customerdst

Example

Un-registers table custAdst as a replica of table custAsrc: 

CLI

maprcli table replica remove -path /volume1/custAsrc -replica /volume2/custAdst

REST

https://<hostIP:8443/rest/table/replica/remove?path=%2Fvolume1%2FcustAsrc&replica=%2Fvolume2%2FcustAdst