Adding Table Replicas
About this task
You can register a MapR-DB binary or JSON table as a replica of another MapR-DB binary or JSON table using MCS and CLI. When you add a replica using the MCS, you can also setup and start replication between a source MapR-DB Binary or JSON table to a replica MapR-DB Binary or JSON table. Before you begin, complete the steps to prepare MapR clusters for table replication.
Adding Table Replica Using the MapR Control System
About this task
To replicate a table:
Procedure
- Log in to MCS and go to the Replication tab in the table information page.
- Click Add Replica and follow the steps for:
- Click Add Replica.
Adding Table Replica Using the CLI or the REST API
About this task
To add a replica, run the following command:
maprcli table replica add -path <table path> -replica <replica table path>
readAce
andwriteAce
on both the source volume and the target volumelookupdir
on directories in the paths of both tablesreadperm
andreplperm
permissions on the source table
table replica add
.maprcli
table replica autosetup
which will setup and start replication.
For more information, see Setting Up Table Replication Using the CLI.