Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.4.0
-
None
-
None
-
None
-
Microsoft Windows 10 Pro
10.0.19045 Build 19045
OpenJDK build 17.0.2
Description
Kafka 3.4 is unable to start in KRaft mode on Windows 10.
Kafka is started in Kafka directory with -
bin\windows\kafka-server-start.bat .\config\kraft\server.properties
but it always fails with following exception -
Caused by: java.nio.file.FileSystemException: D:\LocationGuru\Servers\Kafka-3.4\.\tmp\kraft-combined-logs\__cluster_metadata-0\quorum-state.tmp -> D:\LocationGuru\Servers\Kafka-3.4\.\tmp\kraft-combined-logs\__cluster_metadata-0\quorum-state: The process cannot access the file because it is being used by another process at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) at java.base/sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:403) at java.base/sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:293) at java.base/java.nio.file.Files.move(Files.java:1430) at org.apache.kafka.common.utils.Utils.atomicMoveWithFallback(Utils.java:949) at org.apache.kafka.common.utils.Utils.atomicMoveWithFallback(Utils.java:932) at org.apache.kafka.raft.FileBasedStateStore.writeElectionStateToFile(FileBasedStateStore.java:152) ... 15 more
Attachments
Attachments
Issue Links
- duplicates
-
KAFKA-14273 Kafka doesn't start with KRaft on Windows
- Resolved