[
https://issues.apache.org/jira/browse/KAFKA-3925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16044002#comment-16044002
]
Paolo Patierno commented on KAFKA-3925:
---------------------------------------
In my opinion, putting the log in /tmp is great for all developers who start to
use Kafka or for testing as well. They don't need to remember to delete such
logs after "playing" around with Kafka. I think that as default is good. If
people need persistence of such logs, they should change the logs dir. I think
that just warning on startup could be enough.
> 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=0o...@mail.gmail.com%3e].
> I've also been bitten by this.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)