That is because your logs are in /tmp which you can change by setting log.dirs to something else.
/******************************************* Joe Stein Founder, Principal Consultant Big Data Open Source Security LLC http://www.stealth.ly Twitter: @allthingshadoop <http://www.twitter.com/allthingshadoop> ********************************************/ On Fri, Jan 2, 2015 at 1:58 PM, Sa Li <sal...@gmail.com> wrote: > Hi, All > > I've just notice one thing, when I am experiencing some errors in Kafka > servers, I reboot the dev servers (not a good way), after reboot, I get > into zkCli, I can see all the topics still exist. But when I get into kafka > log directory, I found all data gone, see > > root@DO-mq-dev:/tmp/kafka-logs-1/ui_test_topic_4-0# ll > total 8 > drwxr-xr-x 2 root root 4096 Jan 2 09:39 ./ > drwxr-xr-x 46 root root 4096 Jan 2 10:46 ../ > -rw-r--r-- 1 root root 10485760 Jan 2 09:39 00000000000000000000.index > -rw-r--r-- 1 root root 0 Jan 2 09:39 00000000000000000000.log > > I wonder, if for some reasons, the server down, and restart it, all the > data in hard drive will be gone? > > thanks > > -- > > Alec Li >