You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Sriharsha Chintalapani (JIRA)" <ji...@apache.org> on 2015/03/19 01:39:40 UTC
[jira] [Commented] (KAFKA-2031) Executing scripts that invoke
kafka-run-class.sh results in 'permission denied to create log dir'
warning.
[ https://issues.apache.org/jira/browse/KAFKA-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14368239#comment-14368239 ]
Sriharsha Chintalapani commented on KAFKA-2031:
-----------------------------------------------
[~mnarayan] we've a JIRA to add kafka-env.sh here https://issues.apache.org/jira/browse/KAFKA-1566
> Executing scripts that invoke kafka-run-class.sh results in 'permission denied to create log dir' warning.
> ----------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-2031
> URL: https://issues.apache.org/jira/browse/KAFKA-2031
> Project: Kafka
> Issue Type: Bug
> Components: packaging
> Affects Versions: 0.8.1.1
> Reporter: Manikandan Narayanaswamy
> Priority: Minor
>
> Kafka-run-class.sh script expects LOG_DIR variable to be set, and if this variable is not set, it defaults log dir to $base_dir/logs. And in the event the executor of the script does not have the right permissions, it would lead to errors such as:
> {noformat}
> mkdir: cannot create directory `/usr/lib/kafka/bin/../logs': Permission denied.
> {noformat}
> Proposing one way to make this more configurable is by introducing kafka-env.sh. Sourcing this file would export LOG_DIR and potentially other variables if need be.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)