Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14689

Kafka won't start on Windows in KRaft mode

    XMLWordPrintableJSON

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

        1. kafka-log.txt
          8 kB
          Kedar Joshi
        2. server.properties
          6 kB
          Kedar Joshi

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kedarjoshi Kedar Joshi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: