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

后端 未结 6 2142
遇见更好的自我
遇见更好的自我 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:01

    Deletion of topic fails due to Java's File.rename function. It works differently in some cases in Windows environment (for example if file is in use). Kafka developers already changed this function to Utils.atomicMoveWithFallback (see this issue for details), but seems it was not included into Kafka 2.11-0.11.0. So you need to work with Kafka version that has this fix. Hope this will helps.

提交回复
热议问题