How will you change the retention time in Kafka at runtime?

Pragya Keshap answered on February 23, 2023 Popularity 4/10 Helpfulness 1/10

Contents


More Related Answers

  • kafka set retention time for topic
  • how to check kafka topic retention period
  • Retention period in Kafka
  • Kafka consume message and get offset
  • kafkacat consume
  • replica in kafka
  • What is the purpose of retention period in Kafka cluster?
  • Scale Kafka Consumers

  • How will you change the retention time in Kafka at runtime?

    0

    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.

    The command to use up to 0.8.2 is kafka-topics.sh --alter.

    Use kafka-configs.sh --alter starting with version 0.9.0.

    42. Differentiate between Kafka streams and Sp 


    Popularity 4/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 23 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.