0
votes

I'm running first time Kafka on my windows 7 and getting error starting the Kafka-Service

  1. I downloaded kafka_2.12-2.0.0 and unzipped on C:\kafka_2.12-2.0.0

  2. In C:\kafka_2.12-2.0.0\config\zookeeper.properties changed dataDir to dataDir=C:/kafka_2.12-2.0.0/data/zookeeper (folder dataDir=C:/kafka_2.12-2.0.0/data/zookeeper created)

  3. In C:\kafka_2.12-2.0.0\config\server.properties changed log.dirs to log.dirs=C:/kafka_2.12-2.0.0/data/kafka (folder C:/kafka_2.12-2.0.0/data/kafka created)

  4. Run from cmd with admin permission zookeeper server

    \bin\windowszookeeper-server-start.bat C:\kafka_2.12-2.0.0\config\zookeeper.properties it's running on port 2181 (getting INFO binding to port 0.0.0./0.0.0.0:2181)

  5. Run from another cmd with admin permission kafka server

    \bin\windows\kafka-server-start.bat C:\kafka_2.12- 2.0.0\config\server.properties

I'm getting error : ERROR Exiting Kafka due to fatal exception (kafka.Kafk a$)

java.io.FileNotFoundException: C:\kafka_2.12- (The system cannot find the file specified) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195)

1
Error : at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at java.io.FileInputStream.<init>(FileInputStream.java:93) at org.apache.kafka.common.utils.Utils.loadProps(Utils.java:536) at kafka.Kafka$.getPropsFromArgs(Kafka.scala:42) at kafka.Kafka$.main(Kafka.scala:58) at kafka.Kafka.main(Kafka.scala)Rudy

1 Answers

0
votes

You need to give the configuration file location when you start kafka:

bin/kafka-server-start.sh config/server.properties

Also check the getting started page of kafka to check the basic steps to follow in order to validate the installation:

Get started with kafka