kafka 运行问题:kafka.common.KafkaException: Failed to acquire lock on file .lock 的处理
2017-05-11 14:24
423 查看
文章目录
1、概述 2、问题描述 3、解决方法
1、概述 kafka 运行问题,kafka 异常退出后重启的问题。
2、问题描述 [2016-08-31 10:42:36,015] INFO shutting down (kafka.server.KafkaServer) [2016-08-31 10:42:36,017] INFO Terminate ZkClient event thread. (org.I0Itec.zkclient.ZkEventThread) [2016-08-31 10:42:36,032] INFO EventThread shut down (org.apache.zookeeper.ClientCnxn) [2016-08-31 10:42:36,032] INFO Session: 0x256de78ba570000 closed (org.apache.zookeeper.ZooKeeper) [2016-08-31 10:42:36,040] INFO shut down completed (kafka.server.KafkaServer) [2016-08-31 10:42:36,040] FATAL Fatal error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable) kafka.common.KafkaException: Failed to acquire lock on file .lock in /tmp/kafka-logs. A Kafka instan 9ddc ce 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:245) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245) at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33) at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:35) at scala.collection.TraversableLike$class.map(TraversableLike.scala:245) at scala.collection.AbstractTraversable.map(Traversable.scala:104) at kafka.log.LogManager.lockLogDirs(LogManager.scala:95) at kafka.log.LogManager.<init>(LogManager.scala:57) at kafka.server.KafkaServer.createLogManager(KafkaServer.scala:589) at kafka.server.KafkaServer.startup(KafkaServer.scala:171) at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) at kafka.Kafka$.main(Kafka.scala:67) at kafka.Kafka.main(Kafka.scala)
3、解决方法 * 删除 /tmp/kafka-logs; * netstat -lnp|grep 9092;并且 kill pid; * 又将移除的 /tmp/kafka-logs 移回,启动正常。
相关文章推荐
- kafka启动报错:kafka.common.KafkaException: Failed to acquire lock on file .lock
- VMware虚拟机运行时出错:cannot open the disk xxxxxxxxxxx.vmdk. failed to lock the file
- kafka.common.OffsetOutOfRangeException 问题处理
- kafka.common.FailedToSendMessageException: Failed to send messages after 3 tries
- 在把jQuery的ajax例子放在AppServ上运行时出错,failed to open stream: No such file or directory in Unknown on line 0
- Kafka kafka.common.OffsetOutOfRangeException 问题处理
- Failed to resolve: common Open File 导入项目问题
- kafka.common.FailedToSendMessageException: Failed to send messages after 3 tries.
- 同步出现问题Failed to get lock on destination repos
- Linux:Failed to get exclusive lock on the configuration file
- com.android.ide.common.process.ProcessException: Failed to execute aapt问题排查与解决
- SVN 同步出现问题Failed to get lock on destination repos
- vmware:Cannot open the disk 'XXX' or one of the snapshot disks it depends on. reason: failed to lock the file.
- ubuntu上运行eclipse出现 Call From master to localhost:9000 failed on connection exception
- hadoop 运行过程中出现Call to localhost/127.0.0.1:9000 failed on connection exception错误。
- Unity3d游戏中添加移动MM支付SDK问题处理(failed to find resource file(mmiap.xml})
- [mongoDB]exception in initAndListen: 20 Attempted to create a lock file on a read-only directory:
- Kafka错误3_kafka中 FailedToSendMessageException解决_集群启动问题
- Kafka巨坑:org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
- Thread-0" kafka.common.FailedToSendMessageException: Failed to send messages after 3 tries.