From the Starburst Galaxy navigation menu, select Data > Data maintenance.
Data maintenance jobs run tasks that improve performance and reduce storage in Apache Iceberg tables. Supported tasks include: Compaction, Profile and statistics, Snapshot expiration, and Delete orphan files.
To perform data maintenance operations on live tables, see data maintenance for Kafka streaming ingestion and data maintenance for file ingestion
The Data maintenance pane has the following levels:
To schedule a data maintenance task, click Create maintenance task in the top, catalog, or schema levels.
Provide the following information in the Configure data maintenance dialog:
Maintenance task | Description |
---|---|
Compaction | Improves performance by optimizing your data file size. |
Profiling and statistics | Improves performance by analyzing the table and collecting statistics about your data. |
Snapshot expiration | Reduces storage by deleting data snapshots. |
Delete orphan files | Reduces storage by deleting orphaned data files. |
In the Execution details section, select an executing role and a cluster from the Select cluster the respective drop-down menus.
In the Job schedule section:
For Select frequency: Choose an hourly, daily, weekly, monthly, or annual schedule from the drop-down menu. The corresponding values depend on the schedule:
hh:mm
, then specify AM or PM.hh:mm
, specify AM or PM, then
select a day of the week.hh:mm
, specify AM or PM, then
select a date.MM/DD
hh:mm
. Specify AM or PM.For Enter cron expression: Enter the desired schedule in the form of a UNIX cron expression. For example, a cycle scheduled to run weekly at 9:30 AM on Monday, Wednesday, and Friday:
30 9 * * 1,3,5
Click Save.
All scheduled data maintenance jobs are listed in the Data maintenance pane beginning at the top level.
As with other panes in Starburst Galaxy, the top row of this pane provides catalog-schema-table breadcrumbs to show which detail level you are on. Click names in the breadcrumb list to navigate among the levels.
The header for the top level shows the total number of catalogs with tasks, and provides a search bar and drop-down menus that let you customize which details appear in the list of catalogs.
To view data maintenance jobs of a certain status, use the Last run status drop-down menu. Use the search bar to find catalogs.
The list of catalogs has the following columns:
Tables with maintenance: The total number of table-level jobs.
The Search field at the top, catalog, and schema levels lets you restrict the list below to matching values.
The Last run status drop-down menu at the top, catalog, and schema levels lets your restrict the list to tasks that are scheduled, running, completed, or failed. The default setting is to show all statuses.
The Maintenance task drop-down menu at the catalog and schema levels lets you restrict the list to one of the four task types. The default setting is to show all task types.
To view catalog level details, click the name of a catalog from the top level.
Catalog level details are organized in the following columns:
Schedule: The next scheduled run time.
To view schema level details, click the name of a schema from the catalog level. The schema level list can include individual tables or maintenance tasks set up to run for all tables in a schema.
Schema level details have the following columns:
The Status and Tasks columns are empty until a task’s first run.
Use the options menu to edit the task or to run it now without waiting for its start time.
For more information on individual data maintenance jobs, click a table name from the schema level.
The title of table level task panes is the name of the table. The top portion at the table level provides a summary of the selected data maintenance job, a Run now button, and an options menu that allows you to edit the task.
The Task history section is organized in the following columns:
Elapsed time: The duration of data maintenance job.
All editing is performed at the schema and table levels. The schema level allows for bulk and individual edits, while the table level allows for individual task edits only.
To make bulk edits, go to the schema level, and follow these steps:
To make individual edits:
Existing data maintenance jobs exclude tables with separate maintenance schedules. To include these tables, delete the data maintenance job associated with the table. The tables are automatically included in the data maintenance job as part of the schema.
To delete tasks:
Is the information on this page helpful?
Yes
No