• 删除topic
  • ./kafka-topics.sh –delete –zookeeper 192.168.1.1:2181, 192.168.1.1 :2181, 192.168.1.1 :2181 –topic udp-heart-beat

修改topic 消息存留时间:

./kafka-configs.sh –alter –zookeeper 192.168.1.1:2181, 192.168.1.1 :2181, 192.168.1.1 :2181 –entity-name udp-heart-beat –entity-type topics –add-config delete.retention.ms=120000

发表评论

电子邮件地址不会被公开。