Error While creating kafka zookeeper cluster

call “C:\Program Files\Java\jdk1.8.0_281”\bin\java “-Dzookeeper.log.dir=E:\My_Work\ZooKeeper_Cluster\ZkNode1\apache-zookeeper-3.8.0-bin\bin..\logs” “-Dzookeeper.log.file=zookeeper-Richesh-server-LAPTOP-9MV7BJIM.log” “-XX:+HeapDumpOnOutOfMemoryError” “-XX:OnOutOfMemoryError=cmd /c taskkill /pid %%p /t /f” -cp “E:\My_Work\ZooKeeper_Cluster\ZkNode1\apache-zookeeper-3.8.0-bin\bin..\build\classes;E:\My_Work\ZooKeeper_Cluster\ZkNode1\apache-zookeeper-3.8.0-bin\bin..\build\lib*;E:\My_Work\ZooKeeper_Cluster\ZkNode1\apache-zookeeper-3.8.0-bin\bin..*;E:\My_Work\ZooKeeper_Cluster\ZkNode1\apache-zookeeper-3.8.0-bin\bin..\lib*;E:\My_Work\ZooKeeper_Cluster\ZkNode1\apache-zookeeper-3.8.0-bin\bin..\conf” org.apache.zookeeper.server.quorum.QuorumPeerMain “E:\My_Work\ZooKeeper_Cluster\ZkNode1\apache-zookeeper-3.8.0-bin\bin..\conf\zoo.cfg” 2022-12-05 00:48:52,976 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@177] - Reading configuration from: E:\My_Work\ZooKeeper_Cluster\ZkNode1\apache-zookeeper-3.8.0-bin\bin..\conf\zoo.cfg 2022-12-05 00:48:52,986 [myid:] - WARN [main:o.a.z.s.u.VerifyingFileFactory@65] - \Users\Richesh\AppData\Local\Temp\zookeeper-1 is relative. Prepend .\ to indicate that you’re sure! 2022-12-05 00:48:52,988 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@440] - clientPortAddress is 0.0.0.0:2181 2022-12-05 00:48:52,990 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@444] - secureClientPort is not set 2022-12-05 00:48:52,990 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@460] - observerMasterPort is not set 2022-12-05 00:48:52,990 [myid:] - INFO [main:o.a.z.s.q.QuorumPeerConfig@477] - metricsProvider.className is org.apache.zookeeper.metrics.impl.DefaultMetricsProvider 2022-12-05 00:48:53,025 [myid:] - ERROR [main:o.a.z.s.q.QuorumPeerMain@99] - Invalid config, exiting abnormally org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing E:\My_Work\ZooKeeper_Cluster\ZkNode1\apache-zookeeper-3.8.0-bin\bin..\conf\zoo.cfg at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:198) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:125) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:91) Caused by: java.lang.IllegalArgumentException: myid file is missing at org.apache.zookeeper.server.quorum.QuorumPeerConfig.checkValidity(QuorumPeerConfig.java:792) at org.apache.zookeeper.server.quorum.QuorumPeerConfig.setupQuorumPeerConfig(QuorumPeerConfig.java:663) at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:487) at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:194) … 2 common frames omitted Invalid config, exiting abnormally 2022-12-05 00:48:53,028 [myid:] - INFO [main:o.a.z.a.ZKAuditProvider@42] - ZooKeeper audit is disabled. 2022-12-05 00:48:53,033 [myid:] - ERROR [main:o.a.z.u.ServiceUtils@42] - Exiting JVM with code 2

hey @richeshjena

welcome to the forum :slight_smile:

seems as the myid file is missing:

see ZooKeeper Administrator's Guide
section 5.

Nevertheless I would highly recommend to use Linux as your Kafka platform :wink:

Best,
Michael