You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Peter Davis (JIRA)" <ji...@apache.org> on 2016/07/02 19:04:11 UTC
[jira] [Created] (KAFKA-3925) Default log.dir=/tmp/kafka-logs is
unsafe
Peter Davis created KAFKA-3925:
----------------------------------
Summary: Default log.dir=/tmp/kafka-logs is unsafe
Key: KAFKA-3925
URL: https://issues.apache.org/jira/browse/KAFKA-3925
Project: Kafka
Issue Type: Bug
Components: config
Affects Versions: 0.10.0.0
Environment: Various, depends on OS and configuration
Reporter: Peter Davis
Many operating systems are configured to delete files under /tmp. For example Ubuntu has [tmpreaper](http://manpages.ubuntu.com/manpages/wily/man8/tmpreaper.8.html), others use tmpfs, others delete /tmp on startup.
Defaults are OK to make getting started easier but should not be unsafe (risking data loss).
Something under /var would be a better default log.dir under *nix. Or relative to the Kafka bin directory to avoid needing root.
If the default cannot be changed, I would suggest a special warning print to the console on broker startup if log.dir is under /tmp.
See [users list thread](http://mail-archives.apache.org/mod_mbox/kafka-users/201607.mbox/%3cCAD5tkZb-0MMuWJqHNUJ3i1+xuNPZ4tnQt-RPm65grxE0=0o9VQ@mail.gmail.com%3e). I've also been bitten by this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)