Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to purge everything after deleting service

avatar
Expert Contributor

My question is next,

how to delete every single data after I delete service directly from Ambari. For example, how to delete every config file, every data, every topic of Kafka after deleting Kafka service from Ambari. Or even better question, how to completly reinstall Kafka so I have fresh start without any topic or any data. Thank you! 🙂

1 ACCEPTED SOLUTION

avatar
Expert Contributor

This is an answer is someone will deal with this:

First connect with zkCLi

bin/zkCli.sh -server server:port

afterwards find the path you need. I needed /brokers file and than if you want to delete it enter thi

$ ls /brokers
$ rmr /brokers

View solution in original post

3 REPLIES 3

avatar
Expert Contributor

so, if you delete the service, I think it should already removed the topics. But mainly you need to check on zookeeper, and see whether any information regarding broker is there? and you can also check whether any data is left on the directory that kafka data located.

avatar
Expert Contributor

Hmm, how to check on ZKs if any data about brokers is there?

avatar
Expert Contributor

This is an answer is someone will deal with this:

First connect with zkCLi

bin/zkCli.sh -server server:port

afterwards find the path you need. I needed /brokers file and than if you want to delete it enter thi

$ ls /brokers
$ rmr /brokers