In my case, the problem was that I pointed out the nonexistent chroot kafka.
I found that our ops team configured chroot kafka as purple-elephants and configured to create this chroot to ensure that the kafka service restarts.
First I released sudo service kafka restart , and the log shows that chroot was created:
Ensuring chroot '/purple-elephants' exists Starting Kafka server.
Then I just wrote:
bin/kafka-topics.sh
charneykaye
source share