Reputation: 2046
I am running Confluent's kafka-avro-console-consumer
as described in the quickstart tutorial:
kafka-avro-console-consumer --topic test --zookeeper localhost:2181 --from-beginning
However, I have created a separate user kafka
to run this command. I get the error message
mkdir: cannot create directory '/usr/bin/../logs': Permission denied
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /usr/bin/../logs/schema-registry.log (No such file or directory)
[...]
I would rather not give the kafka
write access to the entire /usr/bin
directory. Where exactly is Kafka trying to create the logs
directory?
Upvotes: 4
Views: 4031
Reputation: 593
The kafka-avro-console-consumer
respects the LOG_DIR
environment variable so if you set it, the log file will be written to this directory instead.
Upvotes: 4