we do the following steps in order to delete the topic - hgpo.llo.prmt.processed
but even after 12 hours topics folders still not deleted from /var/kafka/kafka-logs
note - we set - delete.topic.enable=true
hkafka01 kafka-logs]# /usr/hdp/current/kafka-broker/bin/kafka-topics.sh --zookeeper master01:2181 --alter --topic hgpo.llo.prmt.processed--config retention.ms=1000
WARNING: Altering topic configuration from this script has been deprecated and may be removed in future releases. Going forward, please use kafka-configs.sh for this functionality Updated config for topic "hgpo.llo.prmt.processedd"
kafka01 kafka-logs]# /usr/hdp/current/kafka-broker/bin/kafka-topics.sh --zookeeper master01:2181 --delete --topic hgpo.llo.prmt.processed
Topic hgpo.llo.prmt.processed is already marked for deletion.
how to force the topic deletion ?
on kafka machine ( production machine ) , we see that: ( no free space )
/dev/sdb 15500450528 15500434144 0 100% /var/kafka
and under /var/kafka/kafka-logs , we still see all topic folders (huge size) as example: ( down )
so is it possible just to remove these folders as example - by
rm -rf hgpo.llo.prmt.processed-28 ?
under /var/kafka/kafka-logs we have many topic folders as :
117G hgpo.llo.prmt.processed-28
117G hgpo.llo.prmt.processed-29
117G hgpo.llo.prmt.processed-3
117G hgpo.llo.prmt.processed-30
117G hgpo.llo.prmt.processed-31
117G hgpo.llo.prmt.processed-32
. .