This document lists detailed steps required for setting up Replication for CDAP:
- Setup hbase-site.xml on ALL nodes:
These properties need to be added. Choose Coprocessors based on the HBase version running on the cluster. In this example, its HBase 1.0.
<property> <name>hbase.replication</name> <value>true</value> </property> <property> <name>hbase.coprocessor.regionserver.classes</name> <value>co.cask.cdap.data2.replication.hbase10.LastReplicateTimeObserver</value> </property> <property> <name>hbase.coprocessor.wal.classes</name> <value>co.cask.cdap.data2.replication.hbase10.LastWriteTimeObserver</value> </property>
- The following steps are required for a secure cluster:
- Set up JAAS Configuration.
- Sync /etc/hosts on all the nodes
- SPI Setup:
- <>
- Restart HBase Master and Region Servers.
- Setup HDFS Replication:
- This can be achieved by using hadoop tool distcp with regular intervals. For help on distcp check here.
- For secure clusters, distcp can be run with cdap keytab.
- Start CDAP on Master Cluster.
- Verify cdap Tables are created on both Master and Slave clusters.