In this article, we will see how to
perform the mirroring of Hive data and metadata using Falcon from source
cluster to destination cluster. This article is based on HDP 2.5.
source and target Hive by clicking “Hive” from the Ambari Services
menu, then click “configs” to add following custom properties on Ambari
UI by scroll down to “Custom hive-site”, click it and then click “Add
Press OK to save the changes, then click Restart all the impacted services.
Bootstrap Table and DB
Before creating Hive DR mirroring job to replicate Hive data/metadata for a DB or Table, it is required to perform initial bootstrap of Table and DB from source to target cluster.
For bootstrapping table replication, do an EXPORT of the table in question at source cluster, distcp the export directory to the target cluster, and do an IMPORT at target cluster. Export-Import can be seen here :