Miguel Angel Acevedo
Faulty Developer

Follow

Faulty Developer

Follow
Kafka tools in macOS

Kafka tools in macOS

Miguel Angel Acevedo's photo
Miguel Angel Acevedo
·Jan 4, 2023·

1 min read

Play this article

Install the tools for the command line

brew install kafka

Check the config for a topic

kafka-configs \
--zookeeper KAFKA_ZOOKEPER:2181 \
--entity-type topics \
--entity-name TOPIC_NAME \
--describe

Change the config for a topic (retention time to 14 days)

kafka-configs \
--zookeeper KAFKA_ZOOKEPER:2181 \
--alter --entity-type topics \
--entity-name aws.iot.raw \
--add-config retention.ms=1209600000
 
Share this