Updated on 2026-06-27 GMT+08:00

ARCHIVELOG

Notes and Constraints

This section applies only to MRS 3.2.0-LTS or later.

Function

This command is used to archive instants on the timeline and remove archived instants from the timeline based on configurations. This process keeps the timeline compact and improves the performance of timeline-related operations.

Syntax

RUN ARCHIVELOG ON tableIdentifier;

RUN ARCHIVELOG ON tablelocation;

Parameter Description

Table 1 Parameters

Parameter

Description

tableIdentifier

Name of the Hudi table

tablelocation

Storage path of the Hudi table

Example

run archivelog on h1;
run archivelog on "/tmp/hudi/h1";

Precautions

  • Only instants that are not cleaned can be archived.
  • No matter whether the compaction operation is performed, at least x (x indicates the value of hoodie.compact.inline.max.delta.commits) instants are retained and not archived to ensure that there are enough instants to trigger the compaction schedule.

Response

You can view command execution results in the driver log or on the client.