C:\kafka_2.12-2.1.0\config>kafka-server-start server.properties
The syntax of the command is incorrect.
Error: Could not find or load main class Files\Apache
Ref: https://dzone.com/articles/kafka-setup
better solution to run kafka with zookeeper on windows available here
http://blog.anilot.tk/2014/08/06/Set-Up-Kafka-On-Windows/
https://github.com/Anilot/kafka/releases/
With help of blog.anilot.tk/2014/08/06/Set-Up-Kafka-On-Windows/, i solved this issue
step 1: Add JRE to path (C:\Program Files\Java\jdk1.8.0_131\jre\bin )
2. C:\kafka\config\server.properties
add this line
log.dirs=C:\kafka\kafka-logs
3. zookeeper.properties configur
Similar work
dataDir=C:\kafka\zookeeper-data
4. Start Zookeeper
C:\kafka>.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
run with admin power,
5. Start Kafka
C:\kafka>bin\windows\kafka-server-start.bat config\server.properties
it is working for me
========================================================
No comments:
Post a Comment