Update reset-cluster.md (#10990)

fixed Error: Could not find or load main class org.apache.druid.cli.Main
This commit is contained in:
Tushar Raj 2021-03-30 09:08:35 +05:30 committed by GitHub
parent 1d79ca906a
commit 6789ed0a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 3 deletions

View File

@ -32,19 +32,26 @@ used in the command must have all the necessary druid configuration files.
It can be run in one of the following ways.
```
java org.apache.druid.cli.Main tools reset-cluster [--metadataStore] [--segmentFiles] [--taskLogs] [--hadoopWorkingPath]
java -classpath "/my/druid/lib/*" -Ddruid.extensions.loadList="[]" org.apache.druid.cli.Main \
tools reset-cluster \
[--metadataStore] \
[--segmentFiles] \
[--taskLogs] \
[--hadoopWorkingPath]
```
or
```
java org.apache.druid.cli.Main tools reset-cluster --all
java -classpath "/my/druid/lib/*" -Ddruid.extensions.loadList="[]" org.apache.druid.cli.Main \
tools reset-cluster \
--all
```
Usage documentation can be printed by running following command.
```
$ java org.apache.druid.cli.Main help tools reset-cluster
$ java -classpath "/my/druid/lib/*" -Ddruid.extensions.loadList="[]" org.apache.druid.cli.Main help tools reset-cluster
NAME
druid tools reset-cluster - Cleanup all persisted state from metadata