Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document lists detailed steps required for setting up Replication for CDAP:

  1. Setup hbase-site.xml on all ALL nodes:
    1. These properties need to be added. Choose coprocessors Coprocessors based on the HBase version running on the cluster. In this example below , its HBase 1.0. 

      Code Block
       <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>
  2. These The following steps are required for a secure cluster:
    1. Set up JAAS Configuration.
    2. Sync /etc/hosts on all the nodes
  3. SPI Setup:
    1. <>
  4. Restart HBase Master and Region Servers. 
  5. Setup HDFS Replication:
    1. This can be achieved by using hadoop tool distcp with regular intervals. For help on distcp check here
  6. Start CDAP on Master Cluster.
  7. Verify cdap Tables are created on both Master and Slave clusters.