mc table maintenance status
The mc table maintenance status command shows the status of the most recent maintenance jobs for an Iceberg table.
The following command shows the maintenance job status for the orders table on the myaistor MinIO AIStor cluster:
mc table maintenance status myaistor analytics sales ordersThe command has the following syntax:
mc [GLOBALFLAGS] table maintenance status \
ALIAS \
WAREHOUSE \
NAMESPACE \
TABLE \
[--type VALUE]- Brackets
[]indicate optional parameters.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
ALIAS
Required
The alias of a MinIO AIStor cluster.
WAREHOUSE
Required
The name of the warehouse.
NAMESPACE
Required
The namespace of the table.
TABLE
Required
The name of the table.
--type
Optional
Show only the status for the given maintenance type: icebergSnapshotManagement, icebergUnreferencedFileRemoval, or icebergCompaction.
Omit to show the status for all maintenance types.
Output
For each maintenance type, the command reports:
- Status - one of
Successful,Failed,Disabled, orNot_Yet_Run. - Last Run - the timestamp of the most recent run, when available.
- Failure - the failure message, when the last run failed.
Global flags
This command supports any of the global flags.
Examples
Show status for all maintenance types
mc table maintenance status myaistor analytics sales ordersShow status for a single maintenance type
mc table maintenance status myaistor analytics sales orders --type icebergSnapshotManagementShow status with JSON output
mc table maintenance status myaistor analytics sales orders --json