Topic日志清理
server.properties:
log.cleanup.policy=delete (默认)
1. 按时间维度进行Kafka日志清理
log.retention.hours=1
log.retention.minutes=60
log.retention.ms=3600000
2. 按空间维度进行Kafka日志清理
log.retention.bytes=1073741824
无论时间还是空间维度,只要满足其中一个log就会被清理。
一小时后发现log已经被清除。