0 声望

这家伙太懒,什么都没留下

个人动态
  • 贬了 Kafka 2.11-1.0.0启动报错,连接到zookeeper超时 的评论!

    可能是你说的这个,但是我遇到另外一个问题,就是每次重启zk和kafka时,先启动zk再启动kafka会报:另一个程序正在使用此文件,进程无法访问。

    [2018-01-03 09:44:49,013] WARN Found a corrupted index file due to requirement failed: Corrupt index found, index file (C:\Product-Files\apache\kafkas\kafka_2.11-1.0.0\config\tmp\kafka-logs\secondTopic-2\00000000000000000000.index) has non-zero size but the last offset is 0 which is no larger than the base offset 0.}. deleting C:\Product-Files\apache\kafkas\kafka_2.11-1.0.0\config\tmp\kafka-logs\secondTopic-2\00000000000000000000.timeindex, C:\Product-Files\apache\kafkas\kafka_2.11-1.0.0\config\tmp\kafka-logs\secondTopic-2\00000000000000000000.index, and C:\Product-Files\apache\kafkas\kafka_2.11-1.0.0\config\tmp\kafka-logs\secondTopic-2\00000000000000000000.txnindex and rebuilding index... (kafka.log.Log)
    [2018-01-03 09:44:49,014] ERROR Error while loading log dir C:\Product-Files\apache\kafkas\kafka_2.11-1.0.0\config\tmp\kafka-logs (kafka.log.LogManager)
    java.nio.file.FileSystemException: C:\Product-Files\apache\kafkas\kafka_2.11-1.0.0\config\tmp\kafka-logs\secondTopic-2\00000000000000000000.timeindex: 另一个程序正在使 用此文件,进程无法访问

    谷歌翻译:

    由于需求失败而发现损坏的索引文件:找到损坏索引,索引文件(C:\ Product-Files \ apache \ kafkas \ kafka_2.11-1.0.0 \ config \ tmp \ kafka-logs \ secondTopic-2 \ 00000000000000000000.index)具有非零大小,但是最后一个偏移量是0,它不大于基本偏移量0.}。删除C:\ Product-Files \ apache \ kafkas \ kafka_2.11-1.0.0 \ config \ tmp \ kafka-logs \ secondTopic-2 \ 00000000000000000000.timeindex,

    4年前