I ended up solving my problem thanks to this thread: Kafka bootstrap-servers vs zookeeper in kafka-console-consumer
I believe this is a bug / incorrect configuration leading to a problem with zookeeper and kafka.
DECISION:
First, be sure to delete the topic of the section in the server.propertiesfiles of your brokers:
# Switch to enable topic deletion or not, default value is false
delete.topic.enable=true
Then delete the topic:
bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic myTopic
Delete all directories of /tmp/log.diryour brokers.
EDIT. , zookeeper /tmp/zookeeper/version-2/.
, /brokers/topics zookeeper, :
$ kafka/bin/zookeeper-shell.sh localhost:2181
Connecting to localhost:2181
Welcome to ZooKeeper!
JLine support is disabled
rmr /broker/topics/mytopic
.