Sets up and starts replication between a source table and replica.
maprcli table replica autosetup command performs the following steps to set up replication:
Creates a table with the required column families in the destination cluster.
- Declares the new table to be a replica of the source table and ensures that replication does not begin immediately after the next step.
- Declares the source table as an upstream source for the replica.
- Runs the
CopyTableutility to load a copy of the source data into the replica.
- Clears the paused replication state to start the replication stream.
The path to the source table that you want to replicate.
The path to the replica.
For replication to a table, the command will fail if the replica path you specify points to table that already exists.
By default, all columns in the source table are replicated. If you do not want to replicate all columns in the table, you can specify specific columns to replicate. Provide a comma-separated list of column families or columns from a certain column family (column family:qualifier). For example, use the following syntax to replicate the column family
While the column families that you specify must already exist in the source table, the columns that you specify do not have to exist in the destination table for replication to succeed. If the column is added at a later date, replication for that column will start at that time.
|synchronous||A Boolean value that specifies whether replication is synchronous or asynchronous. The values are |
|multimaster||A Boolean value that specifies whether or not to set up a multi-master topology. The values are |
|throttle||A Boolean value that specifies whether or not to throttle replication operations. Throttle the replication stream to minimize the impact of the replication process on incoming operations during periods of heavy load. The values are true or false. No throttle (|
|networkencryption||A Boolean value that specifies whether or not to enable on-wire encryption. The values are |
The type of on-wire compression.
The types are:
lz4 is the default compression which it set by parameter values