[ 
https://issues.apache.org/jira/browse/KAFKA-14689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deng Ziming resolved KAFKA-14689.
---------------------------------
    Resolution: Duplicate

This is the same with KAFKA-14273

> Kafka won't start on Windows in KRaft mode
> ------------------------------------------
>
>                 Key: KAFKA-14689
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14689
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 3.4.0
>         Environment: Microsoft Windows 10 Pro
> 10.0.19045 Build 19045
> OpenJDK build 17.0.2
>            Reporter: Kedar Joshi
>            Priority: Major
>         Attachments: kafka-log.txt, server.properties
>
>
> Kafka 3.4 is unable to start in KRaft mode on Windows 10.
> Kafka is started in Kafka directory with -
> {code:java}
> bin\windows\kafka-server-start.bat .\config\kraft\server.properties {code}
> but it always fails with following exception -
> {code:java}
> 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 {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to