Exception during topic deletion when Kafka is hosted in Docker in Windows

后端 未结 6 2169
遇见更好的自我
遇见更好的自我 2021-02-15 14:14

I host Kafka in Docker in Windows. Wurstmeister/Kafka docker image is used. Kafka data is stored in local Windows folder for persistency. Windows folder is mapped to Kafka docke

6条回答
  •  北恋
    北恋 (楼主)
    2021-02-15 15:04

    This solved the problem
    1.Stop both Kafka and Zookeeper processes.
    2.Delete all old log directories.
    3.Change the log.dir to point to new directory in server.properties
    4.Change the dataDir to point to new directory in zookeeper.properties


    Then restart the Zookeeper and Kafka server:


    C:\kafka_2.12-2.4.0> zookeeper-server-start.bat .\config\zookeeper.properties
    C:\kafka_2.12-2.4.0> kafka-server-start.bat .\config\server.properties

提交回复
热议问题