Versions Compared

Key

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

...

Manual Failover Procedure

  1. Stop all CDAP programs on the master cluster
  2. Stop CDAP on the master cluster
  3. Copy any hdfs files that have not yet been copied using your distro's solution or distcp
  4. Run the replication status tool to get cluster state 

    Code Block
    $ cdap run co.cask.cdap.data.tools.ReplicationStatusTool -m -o /tmp/master_state
  5. Copy the master state onto your slave cluster 

    Code Block
    $ scp /tmp/master_state <slave-master>:/tmp/master_state
  6. Verify replication has copied required data on the slave 

    Code Block
    $ cdap run co.cask.cdap.data.tools.ReplicationStatusTool -i /tmp/master_state
    ...
    Master and Slave Checksums match. HDFS Replication is complete.
    HBase Replication is complete.
  7. Run Hive's metatool to update locations for Hive tables 

    Code Block
    $ hive --service metatool -updateLocation hdfs://[master-namenode-host]:[master-namenode-port] hdfs://[slave-namenode-host]:[slave-namenode-port] -tablePropKey avro.schema.url -serdePropKey avro.schema.url
  8. Start CDAP on the slave