Reputation: 324
My disk space is running out, after syncing 2 millions message in one of my Kafka topic. I even deleted the topic but still the space is somehow seems consumed. Any help of link would be appreciated.
Upvotes: 12
Views: 17503
Reputation: 2167
Upvotes: 1
Reputation: 520
Another way to determine the size of the topic to send metrics, such as graphite. Then the size can be found as follows:
kafka.log.Log.<topic_name>-<partition_number>-Size.value
Upvotes: 1
Reputation: 708
From server.properties
#A comma separated list of directories under which to store log files
log.dirs=/tmp/kafka-logs
du will work but make sure to check all log directories. In fact, any normal unix command that you like to check disk space will work.
Deleting topic does not guarantee deletion. It will put it in "to be deleted" state. If you have any producer/consumer still attached to the topic, it will not be removed. Try the following:
Upvotes: 0
Reputation: 2002
Use the below command to know how much disk space consumed by each topic
du -sh /tmp/kafka-logs/*
Upvotes: 6