id / kafka-el7-rpm

A set of scripts to package Apache Kafka into an rpm (CentOS/RedHat 7)
54 stars 40 forks source link

kafka-*.sh makes mkdir error message #4

Closed sanori closed 8 years ago

sanori commented 8 years ago

After installing the rpm, when I run kafka shell scripts such as /opt/kafka/bin/kafka-topics.sh mkdir error occurs as follows:

$ /opt/kafka/bin/kafka-topics.sh --list --zookeeper localhost:2181
mkdir: cannot create directory '/opt/kafka/bin/../logs': Permission denied

It seems that the log directory is not properly set somewhere in the code.

Workaround: sudo mkdir /opt/kafka/logs

id commented 8 years ago

It works if you run this command as kafka user. sudo su - kafka; bin/kafka-topics.sh ...

id commented 8 years ago

Sorry, I'm wrong. The last fix changed this.

I'll have a look.