Kafka topic no longer exists after restart

前端 未结 3 1859
傲寒
傲寒 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:41

    I think you've run into the problem of the /tmp directory being cleaned out whenever your computer reboots. You either need to change the directory that you're storing your Kafka logs to, or change the $TMPTIME environmental variable in /etc/default/rcS which controls how long the tmp files are kept around (time in days).

    https://askubuntu.com/questions/20783/how-is-the-tmp-directory-cleaned-up

提交回复
热议问题