mc table warehouse maintenance set

The mc table warehouse maintenance set command enables a maintenance type on an Iceberg warehouse.

set requires a complete set of values for the chosen maintenance type and always enables the configuration. Use mc table warehouse maintenance update to change individual settings or to disable an existing configuration.

Parameters

ALIAS

Required

The alias of a MinIO AIStor cluster.

WAREHOUSE

Required

The name of the warehouse to configure.

--type

Required

The maintenance type to enable. Specify one of:

The icebergCompaction type is not supported by this command.

--max-age-hours

Required for icebergSnapshotManagement

The maximum snapshot age, in hours, before a snapshot becomes eligible for expiration.

--min-snapshots

Required for icebergSnapshotManagement

The minimum number of most-recent snapshots to keep, regardless of age.

--unreferenced-days

Required for icebergUnreferencedFileRemoval

The number of days a file must remain unreferenced before it is marked noncurrent.

--noncurrent-days

Required for icebergUnreferencedFileRemoval

The number of days a noncurrent file is retained before it is permanently deleted.

Global flags

This command supports any of the global flags.

Examples

Enable snapshot expiration

mc table warehouse maintenance set myaistor analytics \
   --type icebergSnapshotManagement                   \
   --max-age-hours 168                                 \
   --min-snapshots 5

Enable unreferenced file removal

mc table warehouse maintenance set myaistor analytics \
   --type icebergUnreferencedFileRemoval              \
   --unreferenced-days 7                               \
   --noncurrent-days 7