According to official kafka documentation after command bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 3 --partitions 1 --topic my-replicated-topic
server throw error "Failed to acquire lock on file .lock in tmp/kafka-logs". How to fix it?
just delete directory /tmp/kafka-logs and try again
Remove the file .lock in /tmp/kafka-logs:
rm /tmp/kafka-logs/.lock
.
That way you can keep any pre-existing logs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With