[ 
https://issues.apache.org/jira/browse/KAFKA-3925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16492595#comment-16492595
 ] 

Mahesh commented on KAFKA-3925:
-------------------------------

Bitten by this - unfortunately during a demo. As someone has already pointed 
out, why cant the default directory be under $HOME/kafka_logs or something 
similar?

> 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
>            Priority: Major
>
> 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
(v7.6.3#76005)

Reply via email to