Adding Stream Replicas
You can create stream replicas using MCS and the CLI. When you add a replica using the MCS, you can also set up and start replication between a source and replica stream.
Before creating a replica:
Note:
- You must replicate all of the topics that are in a stream. You cannot select only a subset of topics to replicate.
- The maximum number of replicas that a stream can replicate to is 64.
- The maximum number of upstream sources that a replica can accept data from is 64.
- In
- Multi-master replication, names of topics must be unique on all streams. Messages are assigned sequential offsets. The offsets for messages in a topic in one copy could conflict with the offsets for messages in the other copy. As a result, messages could be lost.
- Many-to-one replication, topics with the same name should not be replicated to an aggregate replica.
Adding a Replica Using the MapR Control System
Adding a Replica Using the CLI or REST API
The basic command to create a replica is:
maprcli stream replica add -path <stream path> -replica <remote stream path>
To run this command, your user ID must have the following permissions on the:
For complete reference, see
stream replica add
.
Note: You also have the option to set up replication with
maprcli
table replica autosetup
which will set up and start
replication. For more information, see Setting Up Stream Replication Using the CLI.