Kafka 1.0 stops with FATAL SHUTDOWN error. Logs directory failed

后端 未结 10 2026
别跟我提以往
别跟我提以往 2020-12-13 14:38

I have just upgraded to Kafka 1.0 and zookeeper 3.4.10.At first, it all started fine. Stand - alone producer and consumer worked as expected. After I\'ve ran my code for abo

10条回答
  •  庸人自扰
    2020-12-13 15:19

    The problem is in a concurrent working with log files of kafka. The task is a delaying of external log files changing between all Kafka threads and

    Topic configuration can help:

    Map config = new HashMap<>();
    config.put(CLEANUP_POLICY_CONFIG, CLEANUP_POLICY_COMPACT);
    config.put(FILE_DELETE_DELAY_MS_CONFIG, "3600000");
    config.put(DELETE_RETENTION_MS_CONFIG, "864000000");
    config.put(RETENTION_MS_CONFIG, "86400000");
    

提交回复
热议问题