Thanks Brian. I applied the following command with --all, it works fine.

kafka-configs --bootstrap-server localhost:9092 --entity-type brokers
--entity-name 1 --describe --all.

I believe this includes *both* default  config values as well as config
values  those were overridden . Is there any command if i wanted to query
only the overridden values and the rest will be default values

On Fri, Jun 12, 2020 at 7:58 PM Brian Byrne <bby...@confluent.io> wrote:

> Hi Nag,
>
> To address (2) first, the --entity-default flag requests the default
> configuration that all brokers inherit. An individual broker may override
> any of the default config's entries, which is done by specifying the broker
> ID to the --entity-name flag.
>
> The reason you're getting blank output for --entity-default is because all
> entries in the config are using their default values. If you wish to see
> all config entries, you can pass flag --all which is included in the 2.5
> release (KIP-524:
>
> https://cwiki.apache.org/confluence/display/KAFKA/KIP-524%3A+Allow+users+to+choose+config+source+when+describing+configs
> ).
>
> Please let me know if you have any other questions,
>
> Brian
>
> On Fri, Jun 12, 2020 at 5:18 AM Nag Y <andriod.nag.u...@gmail.com> wrote:
>
> > I applied kafka-config to get the default settings for the brokers,
> >
> > kafka-configs --bootstrap-server localhost:9092 --entity-type brokers
> > --entity-default --describe
> >
> > The command responded with the following response, without any *complete*
> >  output.
> >
> > Default configs for brokers in the cluster are:
> >
> >
> >    1. So, how to get the all the default settings across all brokers
> >    2. I understood from the command line what it means, didnt get the
> >    context completely. What is the real difference between entity-default
> >    ,entity-name
> >
> > From documentation:
> >
> > --entity-default                       Default entity name for
> >                                        clients/users/brokers (applies to
> >                                        corresponding entity type in
> command
> >                                        line)
> >
> > --entity-name <String>                 Name of entity (topic name/client
> >                                        id/user principal name/broker id)
> >
>

Reply via email to