Hello World

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 的参数值。

  

 

  

  

posted @ 2019-03-04 14:54  小小忧愁米粒大  阅读(6705)  评论(0编辑  收藏  举报
瞅啥瞅,好好看书