公司做网站一般要多少钱,宁夏住房城乡建设厅网站,个人自己免费建网站,wordpress ueditor 教程kafka目录结构 bin linux系统下可执行脚本文件 bin/windows windows系统下可执行脚本文件 config 配置文件 libs 依赖类库 licenses 许可信息 site-docs 文档 logs 服务日志 启动ZooKeeper 进入Kafka解压缩文件夹的config目录#xff0c;修改zookeeper.properties配置文件 #t…
kafka目录结构 bin linux系统下可执行脚本文件 bin/windows windows系统下可执行脚本文件 config 配置文件 libs 依赖类库 licenses 许可信息 site-docs 文档 logs 服务日志 启动ZooKeeper 进入Kafka解压缩文件夹的config目录修改zookeeper.properties配置文件 #the directory where the snapshot is stored. #修改dataDir配置用于设置ZooKeeper数据存储位置该路径如果不存在会自动创建。 dataDirE:/kafka_2.12-3.6.1/data/zk 打开DOS窗口 #因为当前目录为windows所以需要通过相对路径找到zookeeper的配置文件。 zookeeper-server-start.bat …/…/config/zookeeper.properties 出现如下界面ZooKeeper启动成功 为了操作方便也可以在kafka解压缩后的目录中创建脚本文件zk.cmd。 #调用启动命令且同时指定配置文件。 call bin/windows/zookeeper-server-start.bat config/zookeeper.properties 启动Kafka
进入Kafka解压缩文件夹的config目录修改server.properties配置文件 #Listener name, hostname and port the broker will advertise to clients. #If not set, it uses the value for “listeners”. #客户端访问Kafka服务器时默认连接的服务为本机的端口9092如果想要改变可以修改如下配置 #此处我们不做任何改变默认即可 #advertised.listenersPLAINTEXT://your.host.name:9092 #A comma separated list of directories under which to store log files #配置Kafka数据的存放位置如果文件目录不存在会自动生成。 log.dirsE:/kafka_2.12-3.6.1/data/kafka 打开DOS窗口, 进入kafka/bin/windows目录 调用启动指令传递配置文件的路径 #因为当前目录为windows所以需要通过相对路径找到kafka的配置文件。 kafka-server-start.bat …/…/config/server.properties 出现如下界面Kafka启动成功。 为了操作方便也可以在kafka解压缩后的目录中创建脚本文件kfk.cmd。 #调用启动命令且同时指定配置文件。 call bin/windows/kafka-server-start.bat config/server.properties DOS窗口中输入jps指令查看当前启动的软件进程 这里名称为QuorumPeerMain的就是ZooKeeper软件进程名称为Kafka的就是Kafka系统进程。此时说明Kafka已经可以正常使用了。