2017-09-01 27 views
0

我以下鏈接:http://programming-tips.in/kafka-set-up-apache-kafka-on-windows/https://dzone.com/articles/running-apache-kafka-on-windows-os爲Apache卡夫卡安裝在本地計算機上。卡夫卡服務器不能運行在Windows後zookepeer成功地在端口2181上運行

成功運行飼養員爲它在我的屏幕看起來像: ![Zookeper server running on command prompt enter image description here

我server.properties文件看起來像:

log.dirs="C:\Program Files\kafka_2.11-0.11.0.0\kafka-logs" 
listeners=PLAINTEXT://:9092 
zookeeper.connect=localhost:2181 
zookeeper.connection.timeout.ms=6000 

我zookeeper.properties文件看起來像:

dataDir="C:\Program Files\kafka_2.11-0.11.0.0\zookeeper-data" 
clientPort=2181 

但是,當我試圖運行下面的命令:

C:\Program Files\kafka_2.11-0.11.0.0>\bin\windows\kafka-server-start.bat \config\server.properties 

雖然,我已經給我已經驗證多次正確的所有路徑,我得到這個錯誤:

The system cannot find the path specified. 

這可能是什麼可能的解決方案?

回答

1

卡夫卡在Windows目前不支持安裝路徑中有空格。嘗試移動您的Kafka文件夾,使路徑不包含空格。此問題在JIRA中報告,應該在即將發佈的其中一個版本中修復。

0

的問題似乎是在你通往「\」,下面應該工作

C:\Program Files\kafka_2.11-0.11.0.0>bin\windows\kafka-server-start.bat config\server.properties 
+0

我試過這個命令了。現在,錯誤是不同的,即:'C:\ Program'不被識別爲內部或外部命令,可操作的程序或批處理文件。 –

相關問題