Failed to acquire lock on file .lock in /tmp/kafka-logs. A Kafka instance in another process or thread is using this directory.


1. 问题现象

  启动 kafka 时报错:Failed to acquire lock on file .lock in /tmp/kafka-logs. A Kafka instance in another process or thread is using this directory.

2. 解决方案

2.1 方案一

  删除 /tmp/kafka-logs 目录,然后重启 kafka;

2.2 方案二

  修改配置的日志文件目录

  在 config/server.properties 中修改 log.dirs 的参数值。

  

 

  

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM