Hi Tommi,
Sorry for the delay in responding.

I know that there is some work underway to define standard precedence for 
passing configs
across all command-line tools.

kafka-producer-perf-test does already define precedence and the KIP does not 
change it:
1) Specific command-line argument
2) producer-props
3) producer.config file

This is the precedence for transactional ID. This is now the precedence for 
bootstrap servers.

There is one difference between kafka-producer-perf-test and the other tools 
and that is
that --bootstrap-server is optional. I did that because I want existing 
configuration files
to work without users having to extract the bootstrap.servers config and put it 
onto the
command line. That seems like unnecessary churn.

I've updated the KIP text a little to clarify.

I see your point about changing bootstrap server in other tools so that it 
becomes
an optional config which could be specified with --producer-property or 
similar, or
using a config file. I would prefer not to attack that under the same KIP just 
to keep
the scope manageable.

Let me know if you have further thoughts here.

Thanks,
Andrew
________________________________________
From: Tommi Vainikainen <tvain...@aiven.io.INVALID>
Sent: 07 August 2025 08:17
To: dev@kafka.apache.org <dev@kafka.apache.org>
Subject: Re: [VOTE] KIP-1147: Improve consistency of command-line arguments

I'd like to ask for a clarification on the precedence of configurations.
Most concretely this KIP adds --bootstrap-server
for kafka-producer-perf-test.sh. Almost all tools have --bootstrap-server
as *required* argument, but kafka-producer-perf-test has gone without
--bootstrap-server command line argument and instead reading bootstrap
server either from properties file or from producer property command line
argument.

How about also defining standard precedence of different ways of passing
e.g. bootstrap server, but also some other properties (in cases like
--consumer-property or --producer-property arguments)? And what about
making command line --bootstrap-server argument optional in cases where the
bootstrap server is defined in a property file passed with --command-config?

There was a little bit related thread about precedence issue in May
https://lists.apache.org/thread/nzov19dm1xckp1l8pl2zkcn6w4zgp8rb

On Mon, Jul 21, 2025 at 11:49 AM Andrew Schofield <
andrew_schofield_j...@outlook.com> wrote:

> Hi,
> I would like to start a vote for KIP-1147 which improves the consistency of
> command-line arguments of the various Kafka CLI tools.
>
>
> https://cwiki.apache.org/confluence/display/KAFKA/KIP-1147%3A+Improve+consistency+of+command-line+arguments
>
> Thanks,
> Andrew

Reply via email to