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

知行合一1 发布于 2016/08/19 11:59
阅读 4K+
收藏 0
 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)
加载中
0
老陌
老陌
 
Failed to acquire lock on file .lock in /hadoop/kafka/./logs . A Kafka instance in another process or thread is using this directory.
应该是这个原因
知行合一1
知行合一1
kill -9就行了
返回顶部
顶部