Clean Metadata

This topic provides Dremio CLI command, dremio-admin clean usage information.

[info] This utility is only available on Mac and Linux.

Requirements

  • A backup must be done before performing the dremio-admin clean command. See Backup for more information.
  • All cluster nodes are completely shut down. See Startup/Shutdown for more information.

Syntax

dremio-admin clean [args...]

Options

    -c, --compact
      compact kvstore
      Default: false
    -o, --delete-orphans
      delete orphans records in kvstore (e.g. old splits)
      Default: false
    -h, --help
      show usage
    -j, --max-job-days
      delete jobs older than provided number of days
      Default: 2147483647
    -i, --reindex-data
      reindex data
      Default: false

Examples

This section provides examples for cleaning up different types of data.

Compact metadata

Compacts metadata store entries.

Usage

dremio-admin clean -c
dremio-admin clean --compact

Delete orphan entries

Deletes orphan metadata store entries.

Usage

dremio-admin clean -o
dremio-admin clean --delete-orphans

Delete jobs

Deletes jobs older than the specified threshold days. If no threshold is specified defaults to 2147483647 days.

Usage

dremio-admin clean -j
dremio-admin clean --max-job-days

Re-index data

Re-index data.

Usage

dremio-admin clean -i
dremio-admin clean --reindex-data

results matching ""

    No results matching ""