The "kafka-configs.sh" script is deprecating the 'zookeeper' option in favor of the 'bootstrap-server' option. However, the functionality of listing configs for the entity "users" via the option 'zookeeper' is not provided by the option 'bootstrap-server'.
For instance, the following command works fine, although with a warning:
$ bin/kafka-configs.sh --zookeeper localhost:2181 --describe --entity-type users Warning: --zookeeper is deprecated and will be removed in a future version of Kafka. Use --bootstrap-server instead to specify a broker to connect to. Configs for user-principal 'user1' are SCRAM-SHA-512=salt=a2JvNHV5bXhnMmFhcXdtbHhkZXc0N25qMA==,stored_key=2lQE0iRGr60Piej3uq/9hUOSXGK7NWkPZKKShsfN6u6aIuN7JNjclRD1fUmNQyc+Viy0iykDnJNrLl+uYFdWEg==,server_key=xM39U6F2Ydb5ekSmz/x3evvE3bTkcJqweT4ZCQHx+BqX2vkt6phfkovk4KkV/orlTz3zLWN4Ffn7f/hmc2G8Eg==,iterations=4096
It suggests to use the option 'bootstrap-server' instead. However when changing to the option 'bootstrap-server', it just failed:
$ bin/kafka-configs.sh --bootstrap-server localhost:9092 --describe --entity-type users Invalid entity type users, the entity type must be one of topics,brokers,broker-loggers with the --bootstrap-server argument