Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
0.8.1.1
-
None
-
None
Description
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:
mkdir: cannot create directory `/usr/lib/kafka/bin/../logs': Permission denied.
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.