You should not run Kafka on Windows except for testing purposes.
Due to bugs 6200 and 7889 which are related to log rotation and the way Windows handles open files, preventing rename/move while the file is open, while unix systems do not have this problem -in Unix a file content can be referenced by many file descriptors-
https://issues.apache.org/jira/browse/KAFKA-6200 https://issues.apache.org/jira/browse/KAFKA-7889
kafka server getting crashed on windows environment after certain time