Configuring Table Replication
Configuring table replication between two Data Fabric clusters involves using maprcli commands to configure cross-cluster
trust, register the destination gateway, and set up replication. This task contains an
example of configuring simple primary-secondary table replication between
two clusters.
About this task
This task configures simple primary-secondary table replication
between two clusters.
Procedure
Configuring Table Replication
echo mapr | maprlogin password
echo -e "create '/tmp/t1', 'cf1'\nput '/tmp/t1', 'r1', 'cf1:c1', 'v1'\nlist '/tmp/ t1'\nscan '/tmp/t1'\nexit" | /usr/bin/hbase shell
maprcli table replica autosetup -path /tmp/t1 -replica /mapr/mydfcluster2/t2 sleep 30
maprcli table replica list -path /tmp/t1
echo -e "put '/tmp/t1', 'r2', 'cf1:c1', 'v2'\nexit" | /usr/bin/hbase shell
echo -e "scan '/tmp/t1'\nscan '/mapr/mydfcluster2/t2'\nexit" | /usr/bin/hbase shell