2016-06-14 60 views
0

我已經在我的本地C:\驅動器文件夾中安裝了kafka和zookeeper,現在我正嘗試運行zookeeper和kafka服務器,這樣我就可以創建主題,但是它拋出的錯誤,任何想法在這裏出錯?如何在本地機器上設置kafka和zookeeper?

卡夫卡COMAND行:

C:\kafka_2.11-0.10.0.0>.\bin\windows\kafka-server-start.bat .\config\server.pro 
erties 
'#' is not recognized as an internal or external command, 
operable program or batch file. 
The syntax of the command is incorrect. 
Error: missing `server' JVM at `C:\Program Files (x86)\Java\jre8\bin\server\jvm 
dll'. 
Please install or use the JRE or JDK that contains these missing components. 

zookeeper.config

tickTime=2000 
initLimit=10 
syncLimit=5 
dataDir=\zookeeper-3.4.8 
clientPort=2181 
+0

我從來沒有在Windows上使用Kafka。但是,您使用的文件'server.pro erties'包含以'#'開頭的行 - 在Linux上,這是註釋。看來Windows不能處理這些評論。嘗試刪除它們。 –

回答

相關問題