So that the add and delete usages are parallel, we will also add an option to accept a properties file and delete the properties from the file. Any property defined in the file will be deleted, regardless of what value is defined in the file. Code Block |
---|
language | text |
---|
title | Example usage with file |
---|
| bin/kafka-configs.sh --bootstrap-server localhost:9092 \
--entity-type brokers --entity-default \
--alter --delete-config-file old.properties |
Input from STDIN can be used instead of a file on disk, to do this use a hyphen instead of a file path: Code Block |
---|
language | text |
---|
title | Example usage with STDIN |
---|
| grep 'complex.property' server.properties | bin/kafka-configs.sh --bootstrap-server localhost:9092 \
--entity-type brokers --entity-default \
--alter --delete-config-file - |
... We will add the --delete-config-file option to kafka-configs.sh . It will not be mutually exclusive with --delete-config because there is no ambiguity about precedence. |