Kafka topic no longer exists after restart

前端 未结 3 1830
傲寒
傲寒 2021-01-21 12:15

I created a topic in my local kafka cluster with 3 servers / brokers by running the following from my kafka installation directory

bin/kafka-topics.sh --create         


        
3条回答
  •  清酒与你
    2021-01-21 12:47

    It doesn't mean if you have the broker directories on temp that you had data on it, brokers tends to create these directories if they doesn't exist.

    • Could you try to recreate the topic, restart the machine then have a look on the /tmp directory before starting Kafka ?
    • Could you try to reproduce with changing the data directory to something other than /tmp ?

提交回复
热议问题