2016-11-09 12:07:01 -05:00
|
|
|
---
|
|
|
|
layout: doc_page
|
|
|
|
---
|
|
|
|
# ResetCluster tool
|
|
|
|
|
|
|
|
ResetCluster tool can be used to completely wipe out Druid cluster state stored on Metadata and Deep storage. This is
|
|
|
|
intended to be used in dev/test environments where you typically want to reset the cluster before running
|
|
|
|
the test suite.
|
|
|
|
ResetCluster automatically figures out necessary information from Druid cluster configuration. So the java classpath
|
|
|
|
used in the command must have all the necessary druid configuration files.
|
|
|
|
|
|
|
|
It can be run in one of the following ways.
|
|
|
|
|
|
|
|
```
|
2018-08-30 12:56:26 -04:00
|
|
|
java org.apache.druid.cli.Main tools reset-cluster [--metadataStore] [--segmentFiles] [--taskLogs] [--hadoopWorkingPath]
|
2016-11-09 12:07:01 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
```
|
2018-08-30 12:56:26 -04:00
|
|
|
java org.apache.druid.cli.Main tools reset-cluster --all
|
2016-11-09 12:07:01 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
# Further Description
|
|
|
|
Usage documentation can be printed by running following command.
|
|
|
|
|
|
|
|
```
|
2018-08-30 12:56:26 -04:00
|
|
|
java org.apache.druid.cli.Main help tools reset-cluster
|
2016-11-09 12:07:01 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
NAME
|
|
|
|
druid tools reset-cluster - Cleanup all persisted state from metadata
|
|
|
|
and deep storage.
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
druid tools reset-cluster [--all] [--hadoopWorkingPath]
|
|
|
|
[--metadataStore] [--segmentFiles] [--taskLogs]
|
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
--all
|
|
|
|
delete all state stored in metadata and deep storage
|
|
|
|
|
|
|
|
--hadoopWorkingPath
|
|
|
|
delete hadoopWorkingPath
|
|
|
|
|
|
|
|
--metadataStore
|
|
|
|
delete all records in metadata storage
|
|
|
|
|
|
|
|
--segmentFiles
|
|
|
|
delete all segment files from deep storage
|
|
|
|
|
|
|
|
--taskLogs
|
|
|
|
delete all tasklogs
|
|
|
|
```
|