Manikandan Narayanaswamy created KAFKA-2031:
-----------------------------------------------
Summary: 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)