Kamol Hasan
Kamol Hasan

Reputation: 13466

Clean up an apache druid cluster

Is there any way to clean up all the druid data (tasks, storage, etc.) for testing purposes?

Found the tutorial which demonstrates the segment deletion:

And reset-cluster tool:

My goal is to have a fresh druid cluster, every time I run testing.

Upvotes: 0

Views: 759

Answers (1)

Sergio Ferragut
Sergio Ferragut

Reputation: 181

If you are asking which of the two options to use, the reset-cluster tool will address your use case as it has options to remove metadata, task logs and segment data in deep storage. The --all option will remove all of them.

The segment deletion process, on the other hand, is used to remove unwanted segments from the cluster and deep storage, but does not address metadata in general or task logs.

Upvotes: 1

Related Questions