Delete every Kafka message or messages up to the specific offset. Preparations Create sample keep-up-with-topic topic. $ bin/kafka-topics.sh --bootstrap-server localhost:9092 --create --topic keep-up-with-topic --replication-factor 3 --partitions 5 Created topic keep-up-with-topic. Display topic details. $ bin/kafka-topics.sh --bootstrap-server localhost:9092 --describe --topic keep-up-with-topic Topic: keep-up-with-topic TopicId: oBWzsfSAQo-63ym7h2Slmw PartitionCount: 5 ReplicationFactor: 3 Configs: segment.bytes=1073741824 Topic: keep-up-with-topic Partition: 0 Leader: […]
↧