Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2031

Executing scripts that invoke kafka-run-class.sh results in 'permission denied to create log dir' warning.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 0.8.1.1
    • Fix Version/s: None
    • Component/s: packaging
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mnarayan Manikandan Narayanaswamy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: