启动kafka失败了 bin/kafka-server-start.sh config/server.properties

发布于 2021-12-03 06:54:25 字数 3193 浏览 692 评论 2

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

at kafka.log.LogManager$$anonfun$lockLogDirs$1.apply(LogManager.scala:98)

at kafka.log.LogManager$$anonfun$lockLogDirs$1.apply(LogManager.scala:95)

at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)

at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:34)

at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)

at scala.collection.AbstractTraversable.map(Traversable.scala:105)

at kafka.log.LogManager.lockLogDirs(LogManager.scala:95)

at kafka.log.LogManager.<init>(LogManager.scala:57)

at kafka.server.KafkaServer.createLogManager(KafkaServer.scala:335)

at kafka.server.KafkaServer.startup(KafkaServer.scala:85)

at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:29)

at kafka.Kafka$.main(Kafka.scala:46)

at kafka.Kafka.main(Kafka.scala)

[2016-08-18 20:57:48,534] INFO [Kafka Server 3], shutting down (kafka.server.KafkaServer)

[2016-08-18 20:57:48,537] INFO Terminate ZkClient event thread. (org.I0Itec.zkclient.ZkEventThread)

[2016-08-18 20:57:48,544] INFO Session: 0x156a0e337bb0002 closed (org.apache.zookeeper.ZooKeeper)

[2016-08-18 20:57:48,544] INFO EventThread shut down (org.apache.zookeeper.ClientCnxn)

[2016-08-18 20:57:48,546] INFO [Kafka Server 3], shut down completed (kafka.server.KafkaServer)

[2016-08-18 20:57:48,547] FATAL Fatal error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable)

kafka.common.KafkaException: Failed to acquire lock on file .lock in /hadoop/kafka/./logs . A Kafka instance in another process or thread is using this directory.

at kafka.log.LogManager$$anonfun$lockLogDirs$1.apply(LogManager.scala:98)

at kafka.log.LogManager$$anonfun$lockLogDirs$1.apply(LogManager.scala:95)

at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)

at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:34)

at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)

at scala.collection.AbstractTraversable.map(Traversable.scala:105)

at kafka.log.LogManager.lockLogDirs(LogManager.scala:95)

at kafka.log.LogManager.<init>(LogManager.scala:57)

at kafka.server.KafkaServer.createLogManager(KafkaServer.scala:335)

at kafka.server.KafkaServer.startup(KafkaServer.scala:85)

at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:29)

at kafka.Kafka$.main(Kafka.scala:46)

at kafka.Kafka.main(Kafka.scala)

[2016-08-18 20:57:48,549] INFO [Kafka Server 3], shutting down (kafka.server.KafkaServer)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

卸妝后依然美 2021-12-04 01:59:14

kill -9就行了

感情旳空白 2021-12-04 01:20:54

 

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

应该是这个原因

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文