...
Public Interfaces
Add optional argument "command-config-file" to both kafka-reassign-partitions.sh and kafka-log-dirs.sh with the following specification
Code Block |
---|
parser.accepts("command-config-file", "Property file containing configs to be passed to adminAdmin clientClient.") .withRequiredArg .describedAs("Admincommand clientconfig property file") .ofType(classOf[String]) |
Proposed Changes
When "--command-config-file" is specified by user, the property file will be used to instantiate the AdminClient used by these tools. This is the same approach used by "--command-config-file" in kafka.tools.StreamsResetterConfigCommand.
The bootstrap url specified by "--bootstrap-server" option will take precedence over the bootstrap.servers specified in the property file.
...