Kafka 1.0 stops with FATAL SHUTDOWN error. Logs directory failed

后端 未结 10 1993
别跟我提以往
别跟我提以往 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:11

    What worked for me was deleting both kafka and zookeeper log directories then configuring my log directories path in both kafka and zookeeper server.properties files (can be found in kafka/conf/server.properties) from the usual slash '/' to a backslash '\'

    0 讨论(0)
  • 2020-12-13 15:19

    Delete logs in zookeeper directory

    0 讨论(0)
  • 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<String, String> 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");
    
    0 讨论(0)
  • 2020-12-13 15:19

    Simply delete all the logs from :

    C:\tmp\kafka-logs

    and restart zookeeper and kafka server.

    0 讨论(0)
提交回复
热议问题