Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get current config in kafka

I was trying to get the config for one of the kafka clusters we have. After doing a config change through puppet, I want to know if kafka has reloaded the config, or if we need to restart the service for that.

I have tried with ./kafka-configs.sh --describe --zookeeper my-zookeeper:2181 --entity-type brokers but I only have empty output.

I have also tried to find for the config browsing inside the zookeepers but i have found nothing.

Is there any way to retrieve which config is being used?

like image 564
Acampoh Avatar asked Mar 21 '18 12:03

Acampoh


1 Answers

Here's full working command to list all configs for the broker with id=1:

./bin/kafka-configs.sh --bootstrap-server <broker-host>:9092 --entity-type 
brokers --entity-name 1 --all --describe
like image 195
Ivan Pronin Avatar answered Sep 27 '22 20:09

Ivan Pronin