我是Kafka的初学者
我下载了Kafka的1.0.0版本
2/i更改了bith server.properties和zookeeper.properties中的data directory location属性
\config\server.properties\config\zookeeper.properties
3/当我尝试启动zookeeper和kafka服务器时,出现了一个错误“文件意外”
d:\kafka-1.0.0-src\kafka-1.0.0-src\bin\windows>zookeeper-server-start.bat….\config\zookeeper.properties文件é泰特注意力不集中。
d:\kafka-1.0.0-src\kafka-1.0.0-src\bin\windows>kafka-server-start.bat….\config\server.properties文件é泰特注意力不集中。
你能帮帮我吗?
2条答案
按热度按时间qij5mzcb1#
我假设每个用户自己的文件夹中的zookeeper和kafka为“kafkaflume”
kafkaflume文件夹中有两个文件夹:一个是zookeeper,另一个是kafka这里还提供了一个配置文件:flumekafka.conf
您需要根据您的要求编辑此文件。
首先需要启动zookeeper:
打开终端,转到zookeeper文件夹并启动它:
打开另一个终端,转到kafka文件夹,然后按以下方式启动:
bin/kafka-server-start.sh config/server.properties
打开另一个终端,转到kafka文件夹并启动producer程序,如下所示:现在编辑flumekafka.conf文件并准备hdfs文件夹以进行数据加载。
现在从控制台运行flume代理命令。
===========================Flume的配置文件:=======================
ncecgwcz2#
谢谢你的回复,我的问题是我的en-java\u主页在文件夹名“program files”中有一些空格。