...
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | delete-config.sh |
---|
|
#!/bin/bash -e
awk '{ system("./kafka-configs.sh --bootstrap-server <bootstrap-plaintext-connection-url> --entity-type topics --entity-name="$1" --alter --delete-config retention.ms") }' topics.txt |
Verify config is configdeleted
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
|
./kafka-topics.sh --describe --zookeeper <zookeeper-plaintext-connection-url> --topic "imtc.Default.tenant001.DI_COMPLETED"
Topic: imtc.Default.tenant001.DI_COMPLETED PartitionCount: 1 ReplicationFactor: 2 Configs:
Topic: imtc.Default.tenant001.DI_COMPLETED Partition: 0 Leader: 1 Replicas: 1,2 Isr: 2,1 |
...