InterviewSolution
Saved Bookmarks
| 1. |
How will you change the retention time in Kafka at runtime? |
|
Answer» A topic's retention time can be configured in Kafka. A topic's DEFAULT retention time is seven days. While creating a new subject, we can set the retention time. When a topic is GENERATED, the broker's property log.retention.hours are used to set the retention time. When configurations for a currently operating topic need to be modified, kafka-topic.sh must be used. The right COMMAND is determined on the Kafka version in USE.
|
|