Incremental job run details for Hive ACID replication policy

You can monitor the incremental job run details for Hive ACID replication policies on the Replication Policies page.

When you create a Hive ACID replication policy, you can choose to run it immediately after the creation process is complete or run it on a schedule. The first replication policy job run is a bootstrap run during which Replication Manager replicates all the existing data from the source cluster to the target cluster. Subsequent runs are incremental job runs. During an incremental job run, only the changed data (delta data) between the previous and current runs is replicated.

When a replication policy job run is initiated, the DUMP and LOAD operations are triggered simultaneously. However, whether both the operations are run during the same run depends on the duration of the DUMP operation:

  • If the DUMP operation completes within a few seconds, the LOAD operation is initiated within the same run.
  • If the DUMP operation runs a few minutes, the LOAD operation does not have any data to load, and is skipped. When the next replication job run is initiated, the DUMP operation is skipped because the last DUMP data has not yet loaded into the target cluster. The LOAD operation continues to load the DUMP data into the target cluster.

Understanding replication cards

A replication cycle consists of a DUMP phase and a successful LOAD phase, which is displayed as a consolidated replication card on the Replication History page. The replication card for a cycle is displayed when the LOAD operation for a corresponding DUMP operation is initiated. A green replication card indicates the successful replication cycle, while a red replication card indicates a failed replication cycle.

The Replication History page displays the ORIGIN field as CM on the replication card for Cloudera Manager commands. For orphan replication history items, it displays DUMP, running on the Source or LOAD, running on the target. These orphan replication history items do not belong to any replication cycle.

The replication process supports the follow replication cycles patterns:

  • DUMP and LOAD operation.
  • DUMP → skipped LOAD → skipped DUMP → LOAD
  • Skipped LOAD → DUMP → skipped DUMP → LOAD

The DUMP and LOAD operations are independent of each other:

  • If the SKIPPED LOAD initiates after the DUMP starts, the LOAD becomes part of the replication cycle.
  • If the SKIPPED LOAD initiates before the DUMP starts, it results in an orphan skipped LOAD and the ORIGIN field displays DUMP, running on the Source. This cycle includes an orphan skipped LOAD, and a complete replication cycle, DUMP → SKIPPED DUMP -→ LOAD.
The following sample image displays the different replication cards on the Replication History page:
Figure 1. Replication cards for Hive ACID replication policy job runs
The image shows the replication cards for Hive ACID replication policy job runs.

Understanding the replication cycle

The replication cycle consists of the following phases:

  1. DUMP phase. During this phase, Replication Manager performs the following actions:
    1. Initiates the DUMP operation on the source cluster.
    2. Scans the Hive metastore (HMS) events for the required database.
    3. Captures a replay of all data modifications (including INSERT, UPDATE, or DELETE write transactions) since the previous job run. Replay refers to the sequence of write transactions that occurred on the source cluster which would be replayed or executed in the same order on the target cluster during the LOAD operation.
    4. Runs the REPL DUMP command to extract the captured metadata and structural state. This command dumps the output configuration and transaction replay logs into a shared staging directory. You can configure the staging directory during the replication policy creation process using the Destination Staging Path option.
  2. LOAD phase. During this phase, Replication Manager performs the following actions:
    1. Initiates the LOAD operation on the target cluster.
    2. Mirrors the exported data from the staging area onto the target database by executing or "replaying" the sequence of captured source write transactions in the exact same order on the target cluster. Replay ensures absolute consistency and data synchronization.
    3. Runs the REPL LOAD command to import the metadata records into the target HMS and starts data copy tasks (often leveraging parallel DistCp jobs) to write the actual underlying data files directly to the target storage root from the staging location.

Monitoring incremental replication job run progress

When you expand a LOAD operation for an incremental job run on the Replication History page,the page displays the End Time of the replication job run, current Status, and the Progress section.

The Progress section tracks the progress of the incremental replication job in real time. It records metrics about the latest executed write transactions on the target cluster to help you monitor the synchronization status and replication latency. The section displays the following metrics:
Metric Description
Last Write Transaction Displays the latest replay of write transactions on the target cluster. During incremental replication, the job run replays all the source events sequentially from the DUMP operation, including write transactions such as INSERT, UPDATE, or DELETE commands.
Was Committed on Source At Displays the precise timestamp when the latest write transaction (currently replaying on the target cluster) was originally committed on the source cluster. This indicates point-in-time catch-up consistency. For example, if this field displays "January 19, 2026, 9:26 A.M.", the target database is in the exact state the source database was at that specific time.
Was Committed on Target At Displays the timestamp when that same write transaction finished executing and was committed on the target cluster.
Latency Displays how far behind (in time) the target cluster is compared to the source cluster. This metric decreases as the replication run proceeds and catches up. Administrators can track this precise replication lag to verify that it aligns with their Recovery Point Objectives (RPOs).
The following sample image displays the Progress section for an incremental replication job run:
Figure 2. Progress section for incremental replication job run
The image shows the Progress section for an incremental replication job run for a Hive ACID replication policy.